/* Login Page Specific Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: white;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Side - Form */
.login-form-side {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
    background: white;
    position: relative;
    z-index: 10;
    box-shadow: 20px 0 50px rgba(0,0,0,0.03);
}

.login-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.login-header .back-link:hover {
    color: var(--primary);
}

.login-header .logo-img {
    height: 80px;
    object-fit: contain;
}

.login-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.login-mode-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 40px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.login-content h1 {
    font-size: 2.25rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.login-content p#login-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.25rem;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    box-sizing: border-box;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    margin-top: 8px;
    font-weight: 600;
}

.btn-login {
    padding: 16px;
    font-size: 1rem;
    margin-top: 16px;
}

.auth-switch {
    text-align: center;
    margin-top: 32px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer p {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Right Side - Visuals */
.login-visual-side {
    width: 55%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    overflow: hidden;
}

.visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.trust-badge i {
    color: #10B981;
}

.visual-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.visual-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Theme Switching for Therapist Mode */
.theme-therapist .toggle-btn.active {
    color: #2563eb;
}
.theme-therapist .btn-primary {
    background-color: #2563eb;
}
.theme-therapist .btn-primary:hover {
    background-color: #1d4ed8;
}
.theme-therapist .forgot-password,
.theme-therapist .auth-switch a {
    color: #2563eb;
}
.theme-therapist .input-with-icon input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    body {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
    .login-container {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
    }
    .login-visual-side {
        width: 100%;
        height: 40%;
        min-height: auto;
        padding: 30px 20px;
        order: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }
    .login-form-side {
        width: 100%;
        flex: 1;
        height: auto;
        padding: 32px 24px 60px 24px;
        order: 2;
        border-radius: 24px 24px 0 0;
        margin-top: -24px;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 10;
    }
    .visual-content {
        display: block;
        text-align: center;
        margin-top: 0;
    }
    .visual-content h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .visual-content p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    .trust-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 12px;
    }
    .visual-logo-container {
        display: none !important;
    }
    .login-header {
        position: static;
        margin-bottom: 24px;
    }
    .login-header .logo-img {
        height: 50px;
        filter: none;
    }
}
