﻿/* Auth Page Variables */
:root {
    --purple-primary: #209aa2;
    --purple-dark: #205b5f;
    --purple-light: #86b7ba;
    --purple-lightest: #FFF1E3;
    --purple-gradient: linear-gradient(135deg, #209aa2 0%, #205b5f 100%);
    --text-primary: #205b5f;
    --text-secondary: #6d8d90;
    --border-color: #dce8e9;
    --success: #86b7ba;
    --error: #EF4444;
    --white: #FFFFFF;
    --shadow-lg: 0 25px 50px -12px rgba(32, 154, 162, 0.25);
}

/* ============================================
   LOGIN PAGE - Split Layout Design
   ============================================ */

.login-page {
    min-height: 100vh;
    background: #f5f9f9;
    display: flex;
    align-items: stretch;
}

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

/* ============================================
   LEFT SIDE - BRAND PANEL (New Animated Design)
   ============================================ */

.login-branding {
    flex: 1;
    background: linear-gradient(155deg, #22d0d9 0%, #209aa2 50%, #177880 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: panelSlideIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panelSlideIn {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Dot-grid texture overlay */
.login-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* ── Decorative rings ── */
.brand-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.brand-ring-1 {
    width: 560px; height: 560px;
    border: 1px solid rgba(255, 255, 255, .15);
    top: -220px; left: -160px;
    animation: ringDrift 22s ease-in-out infinite;
}
.brand-ring-2 {
    width: 360px; height: 360px;
    border: 1px solid rgba(255, 255, 255, .1);
    top: -80px; left: 40px;
    animation: ringDrift 17s ease-in-out infinite reverse;
}
.brand-ring-3 {
    width: 220px; height: 220px;
    border: 1.5px solid rgba(255, 255, 255, .12);
    top: 130px; left: -80px;
    animation: ringDrift 13s ease-in-out infinite 2s;
}
.brand-ring-4 {
    width: 180px; height: 180px;
    border: 1px solid rgba(255, 255, 255, .08);
    bottom: 180px; right: -80px;
    animation: ringDrift 19s ease-in-out infinite reverse 1s;
}

@keyframes ringDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33%       { transform: translate(18px, -22px) rotate(60deg); }
    66%       { transform: translate(-12px, 14px) rotate(120deg); }
}

/* ── Glow blobs ── */
.brand-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.brand-glow-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, transparent 65%);
    top: -100px; left: -100px;
    animation: glowBreathe 5s ease-in-out infinite alternate;
}
.brand-glow-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 65%);
    bottom: 0; right: 60px;
    animation: glowBreathe 7s ease-in-out infinite alternate-reverse;
}

@keyframes glowBreathe {
    from { transform: scale(1);   opacity: 0.6; }
    to   { transform: scale(1.2); opacity: 1; }
}

/* ── Stats bar at top ── */
.brand-stats-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 52px 0;
    animation: fadeSlideDown 0.7s ease 0.2s both;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-stat-num {
    font-size: 22px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.brand-stat-lbl {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    letter-spacing: .04em;
    white-space: nowrap;
}

.stat-sep {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, .2);
    flex-shrink: 0;
}

/* ── Main brand content ── */
.branding-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 52px 64px;
    text-align: center;
    color: white;
}

/* ── Logo wrapper ── */
.brand-logo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing halo ring */
.brand-logo-halo {
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    animation: haloPulse 2.8s ease-in-out infinite;
}
.brand-logo-halo::after {
    content: '';
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    animation: haloPulse 2.8s ease-in-out infinite 0.5s;
}

@keyframes haloPulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.18); opacity: 0.35; }
}

/* Logo circle */
.brand-logo-circle {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, .2);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, .35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15), 0 0 0 1px rgba(255, 255, 255, .1);
    animation: logoFloat 3.2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0)    rotate(0deg);  }
    50%       { transform: translateY(-10px) rotate(1.5deg); }
}

.brand-logo-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .2));
}

/* Orbiting dots */
.brand-logo-orbit {
    position: absolute;
    inset: 0;
    animation: orbitSpin 8s linear infinite;
    pointer-events: none;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 0 10px rgba(255, 255, 255, .7);
}
.orbit-dot-1 { top: 0;   left: 50%; transform: translateX(-50%); }
.orbit-dot-2 { bottom: 8%;  right: 6%; }
.orbit-dot-3 { bottom: 8%;  left: 6%; }

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Brand eyebrow / heading / subtitle ── */
.brand-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.brand-eyebrow::before { content: '—'; opacity: .5; font-weight: 400; }

.brand-heading {
    font-size: clamp(34px, 3.5vw, 50px);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.brand-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.8;
    max-width: 340px;
    margin: 0 auto 32px;
}

/* ── Feature pills ── */
.brand-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(14px);
    animation: pillSlideIn 0.55s ease forwards;
}
.brand-pill-1 { animation-delay: 0.5s; }
.brand-pill-2 { animation-delay: 0.7s; }
.brand-pill-3 { animation-delay: 0.9s; }

@keyframes pillSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, .7);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 6px  rgba(255, 255, 255, .6); }
    50%       { transform: scale(1.5); box-shadow: 0 0 14px rgba(255, 255, 255, .9); }
}

/* Right Side - Form Section */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: white;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.login-header {
    margin-bottom: 36px;
    text-align: center;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Login Form */
.login-form {
    margin-bottom: 32px;
}

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

.login-form .form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-row .form-label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

.login-form .input-wrapper {
    position: relative;
}

.login-form .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.3s ease;
}

.login-form .form-input {
    width: 100%;
    padding: 16px 50px 16px 48px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: var(--white);
    font-family: inherit;
    position: relative;
    z-index: 1;
}

/* Password field - ensure proper bullet display */
.login-form .form-input[type="password"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.15em;
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 4px rgba(32, 154, 162, 0.1);
}

.login-form .form-input:focus ~ .input-icon,
.login-form .input-wrapper:focus-within .input-icon {
    color: var(--purple-primary);
}

.login-form .form-input::placeholder {
    color: #9cb5b8;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    transition: color 0.3s ease;
    z-index: 3;
}

.toggle-password:hover {
    color: var(--purple-primary);
}

/* Custom Checkbox */
.form-options {
    margin-bottom: 28px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--purple-gradient);
    border-color: var(--purple-primary);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '\2713';
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 16px 28px;
    background: var(--purple-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(32, 154, 162, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(32, 154, 162, 0.45);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover svg {
    transform: translateX(4px);
}

.btn-login svg {
    transition: transform 0.3s ease;
}

.btn-login:active {
    transform: translateY(-1px);
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

/* Social Divider */
.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    gap: 12px;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-divider span {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

/* Google Sign-in Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    background: #fff;
    color: #3c4043;
    border: 1.5px solid #dadce0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-google:active {
    background: #f1f3f4;
}

.register-link span {
    color: var(--text-secondary);
    font-size: 15px;
}

.register-link a {
    color: var(--purple-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

/* Test Credentials */
.test-credentials {
    background: linear-gradient(135deg, #FFF1E3 0%, #f0f5f5 100%);
    border: 2px solid var(--purple-lightest);
    border-radius: 12px;
    padding: 20px;
}

.credentials-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--purple-dark);
    font-size: 14px;
    margin-bottom: 12px;
}

.credentials-header svg {
    color: var(--purple-primary);
}

.credentials-content p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Validation */
.validation-summary-valid {
    display: none;
}

.validation-summary,
.validation-summary-errors {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.validation-summary:empty,
.validation-summary ul:empty,
.validation-summary:has(ul:empty) {
    display: none;
}

.validation-error {
    display: block;
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 6px;
    font-weight: 500;
}

.validation-error:empty {
    display: none;
}

/* ============================================
   RTL Support for Login Page
   ============================================ */

body.rtl .login-container {
    flex-direction: row-reverse;
}

@media (max-width: 1024px) {
    body.rtl .login-container {
        flex-direction: column;
    }
}

body.rtl .login-header,
body.rtl .register-link {
    text-align: center;
}

body.rtl .login-form .form-label,
body.rtl .label-row {
    text-align: right;
}

body.rtl .label-row {
    flex-direction: row-reverse;
}

body.rtl .login-form .input-icon {
    left: auto;
    right: 16px;
}

body.rtl .login-form .form-input {
    padding: 16px 48px 16px 50px;
    text-align: right;
}

body.rtl .toggle-password {
    right: auto;
    left: 16px;
}

body.rtl .custom-checkbox {
    flex-direction: row-reverse;
}

body.rtl .btn-login {
    flex-direction: row-reverse;
}

body.rtl .btn-login svg {
    transform: scaleX(-1);
}

body.rtl .btn-login:hover svg {
    transform: scaleX(-1) translateX(4px);
}

body.rtl .register-link a {
    margin-left: 0;
    margin-right: 6px;
}

body.rtl .brand-stats-bar {
    flex-direction: row-reverse;
}

body.rtl .brand-eyebrow {
    flex-direction: row-reverse;
}

body.rtl .brand-pills {
    align-items: center;
}

body.rtl .brand-pill {
    flex-direction: row-reverse;
}

body.rtl .credentials-header {
    flex-direction: row-reverse;
}

body.rtl .credentials-content {
    text-align: right;
}

/* ============================================
   Responsive Design
   ============================================ */

/* ============================================
   MOBILE — stacked layout, brand panel on top
   ============================================ */

@media (max-width: 1024px) {
    /* Stack vertically: brand panel on top, form below */
    .login-container {
        flex-direction: column;
    }

    /* Brand panel becomes a top banner */
    .login-branding {
        display: flex;
        flex: none;
        min-height: auto;
        animation: panelSlideDown 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes panelSlideDown {
        from { opacity: 0; transform: translateY(-24px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Stats bar */
    .brand-stats-bar {
        justify-content: center;
        padding: 28px 20px 0;
        gap: 16px;
        flex-wrap: wrap;
    }

    .brand-stat-num { font-size: 19px; }
    .brand-stat-lbl { font-size: 10px; }

    /* Main content area */
    .branding-content {
        flex: none;
        padding: 18px 20px 28px;
        gap: 0;
    }

    /* Smaller logo wrap */
    .brand-logo-wrap {
        width: 96px;
        height: 96px;
        margin: 0 auto 16px;
    }

    .brand-logo-halo {
        inset: -14px;
    }

    .brand-logo-circle {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

    .brand-logo-img {
        width: 44px;
        height: 44px;
    }

    .orbit-dot {
        width: 6px;
        height: 6px;
    }

    /* Tighter text */
    .brand-eyebrow {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .brand-heading {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .brand-sub {
        font-size: 13px;
        margin-bottom: 16px;
        max-width: 100%;
    }

    /* Pills in a horizontal row */
    .brand-pills {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .brand-pill {
        font-size: 12px;
        padding: 7px 14px;
        gap: 7px;
    }

    .pill-dot {
        width: 6px;
        height: 6px;
    }

    /* Scale back the big decorative rings so they don't blow out */
    .brand-ring-1 { width: 320px; height: 320px; top: -140px; left: -100px; }
    .brand-ring-2 { width: 200px; height: 200px; top: -40px;  left: 20px; }
    .brand-ring-3 { width: 130px; height: 130px; top: 50px;   left: -50px; }
    .brand-ring-4 { width: 100px; height: 100px; bottom: 30px; right: -40px; }

    /* Form card sits below — clean card look */
    .login-form-section {
        flex: none;
        padding: 36px 24px 40px;
        background: white;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-page {
        background: white;
    }
}

/* ── Smaller phones ── */
@media (max-width: 576px) {
    .brand-stats-bar {
        gap: 12px;
        padding: 22px 16px 0;
    }

    .stat-sep { height: 24px; }

    .brand-stat-num { font-size: 17px; }

    .branding-content {
        padding: 14px 16px 22px;
    }

    .brand-logo-wrap {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }

    .brand-logo-circle {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .brand-logo-img {
        width: 38px;
        height: 38px;
    }

    .brand-heading {
        font-size: 22px;
    }

    /* Hide subtitle on very small screens to keep panel tight */
    .brand-sub {
        display: none;
    }

    .brand-pill {
        font-size: 11px;
        padding: 6px 11px;
    }

    .login-form-section {
        padding: 28px 16px 32px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .login-form .form-input {
        padding: 14px 45px;
    }
}

/* ============================================
   Legacy Auth Page Styles (for other pages)
   ============================================ */

.auth-page {
    min-height: 100vh;
    background: var(--purple-gradient);
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 20s ease-in-out infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -175px;
    left: -175px;
    animation: float 15s ease-in-out infinite reverse;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    background: var(--purple-gradient);
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-title {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-body {
    padding: 40px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.link-purple {
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-purple:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

[data-theme="dark"] {
    --text-primary: #dce8e9;
    --text-secondary: #9cb5b8;
    --border-color: #5a7a7e;
    --white: #1a2e35;
}

/* Login Page Dark Mode */
[data-theme="dark"] .login-page {
    background: #0f2224;
}

[data-theme="dark"] .login-branding {
    background: linear-gradient(155deg, #177880 0%, #1a7e87 45%, #134f56 100%);
}

[data-theme="dark"] .login-form-section {
    background: #152e31;
}

[data-theme="dark"] .login-title {
    color: #dce8e9;
}

[data-theme="dark"] .login-subtitle {
    color: #9cb5b8;
}

[data-theme="dark"] .login-form .form-label {
    color: #dce8e9;
}

[data-theme="dark"] .login-form .form-input {
    background: #1a3a3d;
    border-color: #5a7a7e;
    color: #dce8e9;
}

[data-theme="dark"] .login-form .form-input::placeholder {
    color: #6d8d90;
}

[data-theme="dark"] .login-form .form-input:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 4px rgba(32, 154, 162, 0.2);
}

[data-theme="dark"] .login-form .input-icon {
    color: #6d8d90;
}

[data-theme="dark"] .toggle-password {
    color: #6d8d90;
}

[data-theme="dark"] .toggle-password:hover {
    color: var(--purple-light);
}

[data-theme="dark"] .custom-checkbox .checkmark {
    border-color: #5a7a7e;
    background: #1a3a3d;
}

[data-theme="dark"] .checkbox-label {
    color: #9cb5b8;
}

[data-theme="dark"] .register-link span {
    color: #9cb5b8;
}

[data-theme="dark"] .register-link a {
    color: var(--purple-light);
}

[data-theme="dark"] .test-credentials {
    background: #1a3a3d;
    border-color: #5a7a7e;
}

[data-theme="dark"] .credentials-header {
    color: #9cb5b8;
}

[data-theme="dark"] .credential-item strong {
    color: #dce8e9;
}

[data-theme="dark"] .credential-item code {
    background: #205b5f;
    color: var(--purple-light);
}

[data-theme="dark"] .validation-summary {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

[data-theme="dark"] .validation-error {
    color: #FCA5A5;
}

/* Register Page Dark Mode */
[data-theme="dark"] .register-page {
    background: #0f2224;
}

[data-theme="dark"] .register-form-section {
    background: #205b5f;
}

[data-theme="dark"] .register-title {
    color: #dce8e9;
}

[data-theme="dark"] .register-subtitle {
    color: #9cb5b8;
}

[data-theme="dark"] .step-label {
    color: #9cb5b8;
}

[data-theme="dark"] .step-indicator {
    background: #1a3a3d;
    border-color: #5a7a7e;
    color: #9cb5b8;
}

[data-theme="dark"] .step.active .step-indicator {
    background: var(--purple-gradient);
    border-color: var(--purple-primary);
    color: white;
}

[data-theme="dark"] .step.completed .step-indicator {
    background: var(--success);
    border-color: var(--success);
}

[data-theme="dark"] .form-section .form-label {
    color: #dce8e9;
}

[data-theme="dark"] .form-section .form-input,
[data-theme="dark"] .form-section .form-select,
[data-theme="dark"] .form-section .form-textarea {
    background: #1a3a3d;
    border-color: #5a7a7e;
    color: #dce8e9;
}

[data-theme="dark"] .form-section .form-input::placeholder,
[data-theme="dark"] .form-section .form-textarea::placeholder {
    color: #6d8d90;
}

[data-theme="dark"] .form-section .form-input:focus,
[data-theme="dark"] .form-section .form-select:focus,
[data-theme="dark"] .form-section .form-textarea:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 4px rgba(32, 154, 162, 0.2);
}

[data-theme="dark"] .form-section .input-icon {
    color: #6d8d90;
}

[data-theme="dark"] .form-footer span,
[data-theme="dark"] .form-footer p {
    color: #9cb5b8;
}

[data-theme="dark"] .form-footer a {
    color: var(--purple-light);
}

/* Auth Card Dark Mode (Fallback styles) */
[data-theme="dark"] .auth-page {
    background: #0f2224;
}

[data-theme="dark"] .auth-card {
    background: #205b5f;
}

[data-theme="dark"] .auth-body {
    background: #205b5f;
}

[data-theme="dark"] .auth-body .form-label {
    color: #dce8e9;
}

[data-theme="dark"] .auth-body .form-input {
    background: #1a3a3d;
    border-color: #5a7a7e;
    color: #dce8e9;
}

[data-theme="dark"] .auth-body .form-input::placeholder {
    color: #6d8d90;
}

[data-theme="dark"] .auth-body .form-input:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 4px rgba(32, 154, 162, 0.2);
}
