/* css/login.css - Raja Healthcare Login */

@font-face {
    font-family: 'Inter';
    src: url('../webfonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Inter';
    src: url('../webfonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
}
@font-face {
    font-family: 'Inter';
    src: url('../webfonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
}
@font-face {
    font-family: 'Inter';
    src: url('../webfonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
}

/* Login Wrapper */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* LEFT SIDE */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #b22b33 0%, #8e2228 50%, #115cb1 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.left-inner {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.hospital-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    color: #fff;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hospital-badge i {
    font-size: 12px;
}

.left-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.left-title .highlight {
    position: relative;
    display: inline-block;
}

.left-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    z-index: -1;
}

.left-message {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

.left-quote {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    border-left: 4px solid #fff;
}

.left-quote i {
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    margin-bottom: 12px;
    display: block;
}

.left-quote p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-style: italic;
    line-height: 1.6;
}

.hospital-stats {
    display: flex;
    gap: 32px;
}

.hospital-stats .stat {
    display: flex;
    flex-direction: column;
}

.hospital-stats .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.hospital-stats .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* RIGHT SIDE */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #fff;
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.logo-area img {
    height: 48px;
    width: auto;
}

.logo-area span {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #b22b33, #115cb1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1d2e;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #6c757d;
}

/* Form */
.login-form {
    margin-top: 8px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1d2e;
    margin-bottom: 8px;
}

.input-group label i {
    margin-right: 6px;
    color: #b22b33;
    font-size: 12px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e8eaf0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: #b22b33;
    box-shadow: 0 0 0 3px rgba(178,43,51,0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9398b0;
    font-size: 14px;
    padding: 0;
}

.toggle-password:hover {
    color: #b22b33;
}

.error-msg {
    font-size: 11px;
    color: #dc2626;
    margin-top: 6px;
    display: block;
    min-height: 18px;
}

.form-footer {
    text-align: right;
    margin-bottom: 24px;
}

.forgot-link {
    font-size: 12px;
    color: #115cb1;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #b22b33;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #b22b33, #115cb1);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(178,43,51,0.3);
}

.login-btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.login-btn.loading .spinner {
    display: block;
}

.login-btn.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.back-home {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8eaf0;
}

.back-home a {
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.back-home a:hover {
    color: #b22b33;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 900px) {
    .login-left {
        display: none;
    }
    
    .login-right {
        flex: none;
        width: 100%;
        padding: 32px 20px;
    }
    
    .login-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-header h2 {
        font-size: 22px;
    }
    
    .left-title {
        font-size: 32px;
    }
}

/* Left Side Footer */
.left-footer {
    position: relative;
    z-index: 2;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

.left-footer p {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.left-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.left-footer a:hover {
    color: #fff;
    text-decoration: underline;
}