/**
 * Helius - Authentication Styles
 * Login, Register, Password Reset Pages
 * Professional Split-Screen Design
 * =====================================
 */

/* ============================================================================
   CSS VARIABLES FOR AUTH
   ============================================================================ */

:root {
    --auth-form-max-width: 420px;
    --auth-form-padding: 2.5rem;
    --auth-input-height: 52px;
    --auth-border-radius: 12px;
}

/* ============================================================================
   AUTH PAGE BASE
   ============================================================================ */

.auth-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.auth-page .navbar,
.auth-page .footer,
.auth-page .topbar {
    display: none !important;
}

/* ============================================================================
   AUTH WRAPPER - Main Container
   ============================================================================ */

.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ============================================================================
   AUTH FORM SIDE - Left Panel
   ============================================================================ */

.auth-form-side {
    width: 50%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    background: var(--bg-primary);
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: var(--auth-form-max-width);
    margin: 0 auto;
}

/* ============================================================================
   AUTH BRAND SIDE - Right Panel
   ============================================================================ */

.auth-brand-side {
    width: 50%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(145deg, #0a0a0a 0%, #151515 50%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.auth-brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(153, 101, 21, 0.08) 0%, transparent 50%);
    animation: rotateBg 60s linear infinite;
    pointer-events: none;
}

/* Grid pattern overlay */
.auth-brand-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Orbs */
.auth-brand-side .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.auth-brand-side .orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.15);
    top: -10%;
    right: -15%;
    animation: floatOrb1 12s ease-in-out infinite;
}

.auth-brand-side .orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(153, 101, 21, 0.2);
    bottom: -5%;
    left: -10%;
    animation: floatOrb2 10s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* ============================================================================
   AUTH HEADER
   ============================================================================ */

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
}

.auth-logo-text {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F4E5B2 0%, #D4AF37 50%, #996515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.08em;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* Secure Badge */
.auth-secure-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1.25rem;
}

.auth-secure-badge i {
    font-size: 0.75rem;
}

/* ============================================================================
   AUTH FORM
   ============================================================================ */

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.auth-form .form-label i {
    color: var(--gold-primary);
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.auth-form .form-control,
.auth-form .form-select {
    width: 100%;
    height: var(--auth-input-height);
    padding: 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--auth-border-radius);
    transition: all 0.2s ease;
    outline: none;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.auth-form .form-control::placeholder {
    color: var(--text-muted);
}

/* Password Input Group */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group .form-control {
    padding-right: 3.5rem;
}

.password-input-group .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-input-group .password-toggle:hover {
    color: var(--gold-primary);
}

/* Form Options Row */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.25rem 0;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--gold-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.forgot-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Submit Button */
.auth-form .btn-gold.btn-lg.w-100,
.auth-submit {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: var(--auth-border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-form .btn-gold.btn-lg.w-100:hover,
.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
}

.auth-form .btn-gold.btn-lg.w-100:active,
.auth-submit:active {
    transform: translateY(0);
}

.auth-form .btn-gold.btn-lg.w-100:disabled,
.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================================
   AUTH FOOTER
   ============================================================================ */

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-footer a {
    color: var(--gold-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ============================================================================
   BRAND CONTENT - Right Panel
   ============================================================================ */

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 460px;
    padding: 1rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.brand-logo img {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 8px 25px rgba(212, 175, 55, 0.5));
}

.brand-logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F4E5B2 0%, #D4AF37 50%, #996515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
}

.brand-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.brand-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Brand Stats */
.brand-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.25rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.brand-stat {
    text-align: center;
}

.brand-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

.brand-stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.375rem;
}

/* Brand Features */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    text-align: left;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.brand-feature:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateX(6px);
}

.brand-feature-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(153, 101, 21, 0.15) 100%);
    border-radius: 10px;
    color: var(--gold-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.brand-feature-text {
    flex: 1;
    min-width: 0;
}

.brand-feature-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.brand-feature-text span,
.brand-feature-text:not(strong) {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Trust Badges */
.brand-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.trust-badge i {
    color: var(--gold-primary);
    font-size: 0.875rem;
}

/* ============================================================================
   ADMIN LOGIN STYLES
   ============================================================================ */

.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
    position: relative;
}

.admin-login-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 25% 25%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 75%, rgba(153, 101, 21, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.admin-login-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.admin-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.admin-login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.admin-login-logo img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
}

.admin-login-logo-text {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F4E5B2 0%, #D4AF37 50%, #996515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.admin-login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.admin-login-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.admin-security-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.admin-security-notice i {
    color: var(--info);
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-security-notice p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================================
   FORGOT PASSWORD PAGE
   ============================================================================ */

.forgot-password-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(153, 101, 21, 0.12) 100%);
    border: 2px solid rgba(212, 175, 55, 0.25);
    border-radius: 50%;
}

.forgot-password-icon i {
    font-size: 2rem;
    color: var(--gold-primary);
}

.back-to-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.2s;
}

.back-to-login:hover {
    color: var(--gold-primary);
}

/* ============================================================================
   PASSWORD STRENGTH
   ============================================================================ */

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.strength-fill.weak { width: 25%; background: #ef4444; }
.strength-fill.fair { width: 50%; background: #f59e0b; }
.strength-fill.good { width: 75%; background: #3b82f6; }
.strength-fill.strong { width: 100%; background: #10b981; }

.strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* ============================================================================
   SUCCESS / ERROR MESSAGES
   ============================================================================ */

.auth-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.auth-message i {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.auth-message-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.auth-message-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.auth-message-content {
    flex: 1;
}

.auth-message-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-message-text {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.85;
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.auth-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================================
   DEMO CREDENTIALS BOX
   ============================================================================ */

.demo-credentials {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--auth-border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.demo-credentials-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.875rem;
}

.demo-credentials-header i {
    font-size: 1rem;
}

.demo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.demo-item:last-child {
    margin-bottom: 0;
}

.demo-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
}

.demo-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.demo-item-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-item-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-family: var(--font-mono, 'SF Mono', 'Monaco', 'Consolas', monospace);
}

.demo-item-action {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.demo-item-action i {
    font-size: 0.625rem;
}

/* ============================================================================
   SPONSOR VERIFICATION
   ============================================================================ */

.sponsor-input-wrapper {
    position: relative;
}

.sponsor-input-wrapper .form-control {
    padding-right: 45px;
}

.sponsor-spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1rem;
}

.sponsor-status {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.sponsor-status .verifying {
    color: var(--text-muted);
}

.sponsor-status.valid .sponsor-valid {
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sponsor-status.valid .sponsor-valid strong {
    color: var(--text-primary);
    font-weight: 600;
}

.sponsor-status.invalid .sponsor-invalid {
    color: var(--accent-rose);
}

.sponsor-status.error .sponsor-error {
    color: var(--accent-amber);
}

/* ============================================================================
   RESPONSIVE - Tablet (1199px and below)
   ============================================================================ */

@media (max-width: 1199px) {
    .auth-form-side {
        width: 55%;
        padding: 2rem;
    }
    
    .auth-brand-side {
        width: 45%;
        padding: 2rem;
    }
    
    .brand-content {
        max-width: 380px;
    }
    
    .brand-stats {
        gap: 1.5rem;
    }
    
    .brand-stat-value {
        font-size: 1.5rem;
    }
}

/* ============================================================================
   RESPONSIVE - Mobile (991px and below) - Hide Brand Panel
   ============================================================================ */

@media (max-width: 991px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-form-side {
        width: 100%;
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }
    
    .auth-brand-side {
        display: none;
    }
    
    .auth-form-wrapper {
        max-width: 440px;
    }
}

/* ============================================================================
   RESPONSIVE - Small Mobile (575px and below)
   ============================================================================ */

@media (max-width: 575px) {
    .auth-form-side {
        padding: 1.5rem 1rem;
    }
    
    .auth-form-wrapper {
        max-width: 100%;
    }
    
    .auth-header {
        margin-bottom: 1.5rem;
    }
    
    .auth-logo img {
        width: 42px;
        height: 42px;
    }
    
    .auth-logo-text {
        font-size: 1.375rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.875rem;
    }
    
    .auth-form .form-control,
    .auth-form .form-select {
        height: 48px;
        font-size: 1rem;
    }
    
    .auth-form .btn-gold.btn-lg.w-100 {
        height: 48px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .admin-login-card {
        padding: 1.5rem;
    }
    
    .admin-login-header h1 {
        font-size: 1.25rem;
    }
}

/* ============================================================================
   ROW GRID FOR REGISTER FORM
   ============================================================================ */

.auth-form .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.auth-form .row > [class*="col-"] {
    padding: 0 0.5rem;
}

.auth-form .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.auth-form .g-3 {
    margin-bottom: 1rem;
}

.auth-form .g-3 > [class*="col-"] {
    margin-bottom: 0;
}

.auth-form .mt-3 {
    margin-top: 1rem;
}

.auth-form .mt-4 {
    margin-top: 1.5rem;
}

@media (max-width: 575px) {
    .auth-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .auth-form .row {
        margin: 0;
    }
    
    .auth-form .row > [class*="col-"] {
        padding: 0;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-wrapper {
    animation: fadeInUp 0.4s ease-out;
}

.brand-content {
    animation: fadeInUp 0.5s ease-out;
}

.brand-feature {
    animation: fadeInUp 0.4s ease-out backwards;
}

.brand-feature:nth-child(1) { animation-delay: 0.15s; }
.brand-feature:nth-child(2) { animation-delay: 0.25s; }
.brand-feature:nth-child(3) { animation-delay: 0.35s; }
.brand-feature:nth-child(4) { animation-delay: 0.45s; }

/* ============================================================================
   FIX: Demo credentials class mismatch (HTML uses demo-label/demo-value)
   ============================================================================ */

.demo-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-family: var(--font-mono, 'SF Mono', 'Monaco', 'Consolas', monospace);
    cursor: pointer;
}

.demo-value:hover {
    color: var(--gold-primary);
}

/* ============================================================================
   LIGHT MODE OVERRIDES
   ============================================================================ */

/* Form Side */
[data-theme="light"] .auth-form-side {
    background: #F8FAFC;
}

/* Form Inputs - stronger borders on white background */
[data-theme="light"] .auth-form .form-control,
[data-theme="light"] .auth-form .form-select {
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    color: #0F172A;
}

[data-theme="light"] .auth-form .form-control:focus,
[data-theme="light"] .auth-form .form-select:focus {
    background: #FFFFFF;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

[data-theme="light"] .auth-form .form-control::placeholder {
    color: #94A3B8;
}

/* Auth Title & Subtitle */
[data-theme="light"] .auth-title {
    color: #0F172A;
}

[data-theme="light"] .auth-subtitle {
    color: #475569;
}

/* Form Labels */
[data-theme="light"] .auth-form .form-label {
    color: #334155;
}

[data-theme="light"] .auth-form .form-label i {
    color: #B8860B;
}

/* Demo Credentials Box */
[data-theme="light"] .demo-credentials {
    background: linear-gradient(135deg, rgba(0, 150, 180, 0.06) 0%, rgba(100, 60, 200, 0.06) 100%);
    border-color: #0891B2;
}

[data-theme="light"] .demo-credentials-header {
    color: #0891B2;
}

[data-theme="light"] .demo-item {
    background: rgba(0, 150, 180, 0.04);
    border: 1px solid rgba(0, 150, 180, 0.1);
}

[data-theme="light"] .demo-item:hover {
    background: rgba(0, 150, 180, 0.08);
    border-color: rgba(0, 150, 180, 0.25);
}

[data-theme="light"] .demo-label,
[data-theme="light"] .demo-item-label {
    color: #64748B;
}

[data-theme="light"] .demo-value,
[data-theme="light"] .demo-item-value {
    color: #0F172A;
}

[data-theme="light"] .demo-item-action {
    color: #0891B2;
}

/* Secure Badge */
[data-theme="light"] .auth-secure-badge {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}

/* Form Check */
[data-theme="light"] .form-check-label {
    color: #475569;
}

/* Forgot Link */
[data-theme="light"] .forgot-link {
    color: #B8860B;
}

[data-theme="light"] .forgot-link:hover {
    color: #996515;
}

/* Auth Footer */
[data-theme="light"] .auth-footer {
    border-top-color: #E2E8F0;
}

[data-theme="light"] .auth-footer p {
    color: #475569;
}

[data-theme="light"] .auth-footer a {
    color: #B8860B;
}

/* Password Toggle */
[data-theme="light"] .password-input-group .password-toggle {
    color: #94A3B8;
}

[data-theme="light"] .password-input-group .password-toggle:hover {
    color: #B8860B;
}

/* Password Strength */
[data-theme="light"] .strength-bar {
    background: #E2E8F0;
}

[data-theme="light"] .strength-text {
    color: #64748B;
}

/* Sponsor Status */
[data-theme="light"] .sponsor-status.valid .sponsor-valid {
    color: #059669;
}

[data-theme="light"] .sponsor-status.valid .sponsor-valid strong {
    color: #0F172A;
}

/* Auth Messages */
[data-theme="light"] .auth-message-success {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .auth-message-error {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Admin Login Card */
[data-theme="light"] .admin-login-wrapper {
    background: #F1F5F9;
}

[data-theme="light"] .admin-login-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .admin-login-header h1 {
    color: #0F172A;
}

[data-theme="light"] .admin-login-header p {
    color: #475569;
}

[data-theme="light"] .admin-security-notice {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .admin-security-notice p {
    color: #475569;
}

/* Brand Side - Force light text on the always-dark brand panel */
[data-theme="light"] .auth-brand-side .brand-tagline {
    color: #A1A1AA;
}

[data-theme="light"] .auth-brand-side .brand-title {
    color: #FFFFFF;
}

[data-theme="light"] .auth-brand-side .brand-text {
    color: #A1A1AA;
}

[data-theme="light"] .auth-brand-side .brand-stat-value {
    color: var(--gold-primary);
}

[data-theme="light"] .auth-brand-side .brand-stat-label {
    color: #71717A;
}

[data-theme="light"] .auth-brand-side .brand-feature {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(212, 175, 55, 0.15);
}

[data-theme="light"] .auth-brand-side .brand-feature:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .auth-brand-side .brand-feature-text strong {
    color: #FFFFFF;
}

[data-theme="light"] .auth-brand-side .brand-feature-text span,
[data-theme="light"] .auth-brand-side .brand-feature-text {
    color: #A1A1AA;
}

[data-theme="light"] .auth-brand-side .brand-feature-icon {
    color: var(--gold-primary);
}

[data-theme="light"] .auth-brand-side .trust-badge {
    color: #71717A;
}

[data-theme="light"] .auth-brand-side .trust-badge i {
    color: var(--gold-primary);
}
