/* Auth pages */
/* Layout — was missing: auth-left, auth-right, auth-form-wrapper */
.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(12, 18, 40, 0.5);
}

.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.auth-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-form-wrapper h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form-wrapper p {
    color: #94a3b8;
    margin-bottom: 32px;
    font-size: 15px;
}

.auth-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #94a3b8;
}
.auth-link a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}
.auth-link a:hover {
    text-decoration: underline;
}

.auth-brand { text-align: center; position: relative; z-index: 1; }
.auth-brand .logo {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #818cf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 16px;
}
.auth-brand .tagline { font-size: 16px; color: #94a3b8; line-height: 1.6; }
.auth-brand .tagline span { color: #60a5fa; }

/* remember checkbox */
.remember-group { margin-bottom: 8px; }
.remember-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(148, 163, 184, 0.8);
    user-select: none;
    transition: color 0.2s;
}
.remember-label:hover { color: #e2e8f0; }
.remember-label input { display: none; }
.remember-check {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.remember-label:hover .remember-check { border-color: rgba(96, 165, 250, 0.6); }
.remember-label input:checked + .remember-check { background: #3b82f6; border-color: #3b82f6; }
.remember-label input:checked + .remember-check::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

/* Password wrapper */
.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { width: 100%; padding-right: 40px; }
.toggle-password {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(148, 163, 184, 0.6);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.toggle-password:hover { color: #60a5fa; background: rgba(96, 165, 250, 0.08); }
.toggle-password.active { color: #60a5fa; }

/* Password strength & validation */
.password-strength-bar { height: 4px; background: rgba(148,163,184,0.1); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.password-strength-bar div { height: 100%; transition: width 0.3s, background 0.3s; border-radius: 2px; }
.password-requirements {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.6);
    line-height: 1.8;
}
.password-requirements li { transition: color 0.2s; }
.password-requirements li::before { content: '○ '; }
.password-requirements li.met { color: #22c55e; }
.password-requirements li.met::before { content: '● '; }

.password-match { font-size: 12px; margin-top: 4px; display: none; }
.password-match.match { display: block; color: #22c55e; }
.password-match.nomatch { display: block; color: #ef4444; }

.required { color: #ef4444; font-size: 11px; font-weight: 400; margin-left: 4px; }

.field-error { font-size: 11px; color: #ef4444; margin-top: 4px; min-height: 0; display: none; }
.field-error.visible { display: block; }
.field-error.field-success { color: #22c55e; }

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column-reverse;
    }
    .auth-right {
        padding: 60px 40px;
        min-height: 200px;
    }
    .auth-left {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 40px 20px;
        min-height: 150px;
    }
    .auth-right .logo {
        font-size: 32px;
    }
}
