/* ============================================
   SCHOOLERP SECURE LOGIN - PREMIUM LIGHT THEME
   Enterprise-Grade Security with Elegant Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Security-focused color palette - Light Theme */
    --security-primary: #0ea5e9;
    --security-primary-dark: #0284c7;
    --security-primary-light: #e0f2fe;
    --security-accent: #06b6d4;
    --security-success: #10b981;
    --security-success-light: #d1fae5;
    --security-warning: #f59e0b;
    --security-warning-light: #fef3c7;
    --security-danger: #ef4444;
    --security-danger-light: #fee2e2;
    
    /* Light sophisticated theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    
    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Borders and effects */
    --border-subtle: #e2e8f0;
    --border-focus: rgba(14, 165, 233, 0.5);
    --glow-primary: rgba(14, 165, 233, 0.1);
    --glow-accent: rgba(6, 182, 212, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.secure-login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

/* ============================================
   ANIMATED SECURITY BACKGROUND - LIGHT THEME
   ============================================ */
.security-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.security-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--security-primary);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    opacity: 0;
    animation: particleFloat 10s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes particleFloat {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(0) scale(0.3);
    }
    50% { 
        opacity: 0.3; 
        transform: translateY(-60px) scale(1);
    }
}

.shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 60%);
    animation: shieldPulse 5s ease-in-out infinite;
}

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

/* ============================================
   MAIN LOGIN CONTAINER
   ============================================ */
.login-container {
    display: flex;
    max-width: 1100px;
    width: 95%;
    min-height: 680px;
    background: var(--bg-card);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(14, 165, 233, 0.08),
        var(--shadow-xl),
        0 0 80px rgba(14, 165, 233, 0.08);
    position: relative;
    z-index: 1;
}

/* ============================================
   LEFT PANEL - SECURITY SHOWCASE
   ============================================ */
.security-panel {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #0749ed 0%, #09baef 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.security-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.security-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.security-brand {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 36px;
}

.brand-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    width: min(100%, 280px);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-img {
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.brand-icon svg,
.brand-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-icon svg {
    color: white;
}

.security-brand h1 {
    font-size: 30px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.security-brand .tagline {
    margin-top: 0;
}

.tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.security-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: #a5f3fc;
}

.feature-text strong {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.feature-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.security-stats {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 22px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    margin-top: 32px;
    backdrop-filter: blur(8px);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: white;
    font-family: var(--font-mono);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   RIGHT PANEL - LOGIN FORM
   ============================================ */
.login-panel {
    flex: 1;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

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

/* Security Status Indicator */
.security-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
}

.security-status.secure {
    background: var(--security-success-light);
    color: #059669;
    border: 1px solid #a7f3d0;
}

.security-status.warning {
    background: var(--security-warning-light);
    color: #d97706;
    border: 1px solid #fcd34d;
}

.status-icon svg {
    width: 18px;
    height: 18px;
}

/* Alert Banner */
.alert-banner {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.alert-banner.error {
    background: var(--security-danger-light);
    border: 1px solid #fca5a5;
}

.alert-banner.warning {
    background: var(--security-warning-light);
    border: 1px solid #fcd34d;
}

.alert-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-banner.error .alert-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--security-danger);
}

.alert-banner.warning .alert-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--security-warning);
}

.alert-icon svg {
    width: 20px;
    height: 20px;
}

.alert-content {
    flex: 1;
    min-width: 200px;
}

.alert-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-content p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.attempts-indicator {
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 6px;
}

.attempts-indicator span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.attempts-bar {
    display: flex;
    gap: 6px;
}

.attempt-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.attempt-dot.active {
    background: var(--security-success);
    border-color: var(--security-success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Lockout Screen */
.lockout-screen {
    text-align: center;
    padding: 48px 24px;
}

.lockout-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 28px;
    background: var(--security-danger-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25); }
    50% { box-shadow: 0 0 0 24px rgba(239, 68, 68, 0); }
}

.lockout-icon svg {
    width: 52px;
    height: 52px;
    color: var(--security-danger);
}

.lockout-screen h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lockout-screen > p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 15px;
}

.countdown-timer {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 48px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    margin-bottom: 28px;
    border: 1px solid var(--border-subtle);
}

.time-value {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 700;
    color: var(--security-danger);
    line-height: 1;
}

.time-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 8px;
    font-weight: 500;
}

.lockout-help {
    color: var(--text-muted);
    font-size: 14px;
}

.lockout-help a {
    color: var(--security-primary);
    text-decoration: none;
    font-weight: 600;
}

.lockout-help a:hover {
    text-decoration: underline;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Honeypot Field (hidden) */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Form Fields */
.form-field {
    position: relative;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.form-field label svg {
    width: 16px;
    height: 16px;
}

.form-field.focused label {
    color: var(--security-primary);
}

.form-field.has-error label {
    color: var(--security-danger);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--security-primary);
    background: white;
    box-shadow: 0 0 0 4px var(--glow-primary);
}

.form-field.has-error .input-wrapper input {
    border-color: var(--security-danger);
    background: var(--security-danger-light);
}

.input-security-badge {
    position: absolute;
    right: 14px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.input-security-badge svg {
    width: 16px;
    height: 16px;
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-visibility:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.toggle-visibility svg {
    width: 20px;
    height: 20px;
}

.field-error {
    display: block;
    color: var(--security-danger);
    font-size: 12px;
    margin-top: 8px;
    padding-left: 4px;
    font-weight: 500;
}

/* CAPTCHA Section */
.captcha-section {
    padding: 20px;
    background: var(--security-warning-light);
    border-radius: 16px;
    border: 1px solid #fcd34d;
}

.captcha-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b45309;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.captcha-header svg {
    width: 20px;
    height: 20px;
}

.captcha-challenge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-question {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.captcha-input {
    width: 90px;
    height: 54px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    background: white;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
}

.captcha-input:focus {
    outline: none;
    border-color: var(--security-primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

.refresh-captcha {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-captcha:hover {
    background: var(--security-primary);
    border-color: var(--security-primary);
    color: white;
    transform: rotate(180deg);
}

.refresh-captcha svg {
    width: 22px;
    height: 22px;
}

/* Two-Factor Authentication Section */
.twofa-section {
    padding: 24px;
    background: var(--security-primary-light);
    border-radius: 18px;
    border: 1px solid #7dd3fc;
    text-align: center;
}

.twofa-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--security-primary-dark);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.twofa-header svg {
    width: 24px;
    height: 24px;
}

.twofa-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.twofa-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.twofa-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 600;
    background: white;
    border: 2px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.twofa-digit:focus {
    outline: none;
    border-color: var(--security-primary);
    box-shadow: 0 0 0 4px var(--glow-primary), var(--shadow-md);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-subtle);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: var(--security-primary);
    border-color: var(--security-primary);
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.forgot-password {
    color: var(--security-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--security-primary-dark);
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--security-primary) 0%, #006fed 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
   
}

.submit-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-button:hover::before {
    opacity: 1;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-button:hover svg {
    transform: translateX(5px);
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.badge svg {
    width: 18px;
    height: 18px;
    color: var(--security-success);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
    }
    
    .security-panel {
        padding: 32px;
    }
    
    .security-features {
        display: none;
    }
    
    .security-stats {
        margin-top: 20px;
    }
    
    .login-panel {
        padding: 36px;
    }
}

@media (max-width: 640px) {
    .secure-login-page {
        padding: 16px;
    }
    
    .login-container {
        border-radius: 24px;
    }
    
    .security-panel {
        padding: 28px;
    }
    
    .brand-icon {
        width: 64px;
        height: 64px;
    }

    .brand-logo {
        width: min(100%, 240px);
        margin-bottom: 16px;
    }

    .brand-logo-img {
        max-height: 56px;
    }
    
    .brand-icon svg,
    .brand-icon-img {
        width: 36px;
        height: 36px;
    }
    
    .security-brand h1 {
        font-size: 24px;
    }
    
    .login-panel {
        padding: 28px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .twofa-input-group {
        gap: 8px;
    }
    
    .twofa-digit {
        width: 42px;
        height: 52px;
        font-size: 22px;
    }
    
    .trust-badges {
        flex-wrap: wrap;
        gap: 18px;
    }
    
    .captcha-challenge {
        flex-wrap: wrap;
    }
    
    .captcha-question {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container {
    animation: fadeInUp 0.6s ease-out;
}

.feature-item {
    animation: fadeInUp 0.5s ease-out;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

/* Form field focus animations */
.form-field .input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--security-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.form-field.focused .input-wrapper::after {
    width: calc(100% - 4px);
}
