/* ============================================
   Auto Attender AI - Premium Login Page
   Modern Split Panel Design with Glass Morphism
   Brand Colors: #2563eb (primary), #7c3aed (secondary)
   ============================================ */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    /* Brand Colors */
    --aa-primary: #2563eb;
    --aa-primary-light: #3b82f6;
    --aa-primary-dark: #1d4ed8;
    --aa-secondary: #7c3aed;
    --aa-secondary-light: #8b5cf6;
    --aa-accent: #06b6d4;

    /* Gradients */
    --aa-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --aa-gradient-vibrant: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --aa-gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);

    /* Dark Theme */
    --aa-dark-bg: #0a0f1a;
    --aa-dark-surface: #111827;
    --aa-dark-card: #1a2332;
    --aa-dark-border: rgba(255, 255, 255, 0.08);

    /* Light Theme (Form) */
    --aa-light-bg: #ffffff;
    --aa-light-surface: #f8fafc;
    --aa-light-border: #e2e8f0;

    /* Text Colors */
    --aa-text-white: #ffffff;
    --aa-text-light: rgba(255, 255, 255, 0.9);
    --aa-text-muted: rgba(255, 255, 255, 0.6);
    --aa-text-dark: #0f172a;
    --aa-text-gray: #64748b;

    /* Effects */
    --aa-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --aa-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --aa-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --aa-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --aa-shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);

    /* Spacing */
    --aa-radius-sm: 0.5rem;
    --aa-radius-md: 0.75rem;
    --aa-radius-lg: 1rem;
    --aa-radius-xl: 1.5rem;
    --aa-radius-2xl: 2rem;

    /* Transitions */
    --aa-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --aa-transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --aa-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--aa-dark-bg);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   Animated Background
   ============================================ */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, var(--aa-dark-bg) 0%, #0d1424 50%, var(--aa-dark-bg) 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 70%);
}

/* Floating Particles */
.bg-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--aa-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle 20s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -5s; animation-duration: 20s; }
.particle:nth-child(3) { left: 35%; top: 30%; animation-delay: -10s; animation-duration: 28s; }
.particle:nth-child(4) { left: 50%; top: 70%; animation-delay: -15s; animation-duration: 22s; }
.particle:nth-child(5) { left: 65%; top: 25%; animation-delay: -7s; animation-duration: 26s; }
.particle:nth-child(6) { left: 75%; top: 60%; animation-delay: -12s; animation-duration: 24s; }
.particle:nth-child(7) { left: 85%; top: 40%; animation-delay: -3s; animation-duration: 30s; }
.particle:nth-child(8) { left: 45%; top: 50%; animation-delay: -18s; animation-duration: 27s; }

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) scale(1.5);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, -100px) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translate(50px, -30px) scale(1.2);
        opacity: 0.5;
    }
}

/* Glowing Orbs */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: glow-pulse 10s ease-in-out infinite;
}

.bg-glow-1 {
    width: 700px;
    height: 700px;
    background: var(--aa-primary);
    top: -300px;
    left: -200px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--aa-secondary);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: var(--aa-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -3s;
    opacity: 0.2;
}

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

/* ============================================
   Main Container
   ============================================ */
.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ============================================
   Left Panel - Branding
   ============================================ */
.login-branding {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.branding-content {
    max-width: 560px;
    color: var(--aa-text-white);
    animation: fadeInLeft 0.8s ease-out;
}

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

/* Brand Header */
.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.branding-logo {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 4px 20px rgba(37, 99, 235, 0.5));
    animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.brand-title h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--aa-gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
}

.brand-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--aa-gradient);
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    margin-top: 0.25rem;
}

.tagline {
    font-size: 1.125rem;
    color: var(--aa-text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Hero Statement */
.hero-statement {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--aa-dark-border);
}

.hero-statement h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--aa-text-white);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.gradient-text {
    background: var(--aa-gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-statement p {
    font-size: 1.0625rem;
    color: var(--aa-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--aa-radius-lg);
    border: 1px solid var(--aa-dark-border);
    backdrop-filter: blur(10px);
    transition: all var(--aa-transition-normal);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--aa-radius-md);
    background: var(--aa-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.feature-icon i {
    font-size: 1.125rem;
    color: white;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.feature-text strong {
    color: var(--aa-text-white);
    font-size: 0.9375rem;
    font-weight: 600;
}

.feature-text span {
    color: var(--aa-text-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--aa-radius-xl);
    border: 1px solid var(--aa-dark-border);
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--aa-gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--aa-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--aa-dark-border);
}

/* ============================================
   Right Panel - Login Form
   ============================================ */
.login-form-panel {
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(26, 35, 50, 0.9) 100%);
    backdrop-filter: blur(20px);
    position: relative;
}

@media (min-width: 992px) {
    .login-form-panel {
        border-left: 1px solid var(--aa-dark-border);
    }

    .login-form-panel::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 1px;
        background: var(--aa-gradient);
        opacity: 0.5;
    }
}

/* Login Card */
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--aa-light-bg);
    border-radius: var(--aa-radius-2xl);
    padding: 2.5rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        var(--aa-shadow-xl),
        var(--aa-shadow-glow);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--aa-gradient);
}

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

/* Mobile Logo */
.mobile-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
}

.mobile-logo img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 15px rgba(37, 99, 235, 0.3));
}

.mobile-brand {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--aa-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--aa-gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wave 2.5s ease-in-out infinite;
}

.welcome-icon i {
    font-size: 1.5rem;
    color: var(--aa-primary);
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50%, 100% { transform: rotate(0deg); }
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--aa-text-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--aa-text-gray);
    font-size: 0.9375rem;
    margin: 0;
}

/* Alert */
.alert {
    border-radius: var(--aa-radius-md);
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--aa-text-dark);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.label-icon {
    font-size: 0.875rem;
    color: var(--aa-primary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper .form-control {
    width: 100%;
    padding: 0.9375rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 2px solid var(--aa-light-border);
    border-radius: var(--aa-radius-md);
    background: var(--aa-light-surface);
    color: var(--aa-text-dark);
    transition: all var(--aa-transition-fast);
}

.input-wrapper .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-wrapper .form-control:hover {
    border-color: #cbd5e1;
}

.input-wrapper .form-control:focus {
    outline: none;
    border-color: var(--aa-primary);
    background: var(--aa-light-bg);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-focus-ring {
    display: none;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--aa-text-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--aa-radius-sm);
    transition: all var(--aa-transition-fast);
}

.password-toggle:hover {
    color: var(--aa-primary);
    background: var(--aa-gradient-subtle);
}

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
}

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

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--aa-light-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--aa-transition-fast);
    background: var(--aa-light-surface);
}

.checkbox-custom i {
    font-size: 0.625rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all var(--aa-transition-fast);
}

.remember-me input:checked + .checkbox-custom {
    background: var(--aa-gradient);
    border-color: var(--aa-primary);
}

.remember-me input:checked + .checkbox-custom i {
    opacity: 1;
    transform: scale(1);
}

.remember-text {
    font-size: 0.875rem;
    color: var(--aa-text-gray);
    font-weight: 500;
}

/* Primary Button */
.btn-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aa-gradient);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    border-radius: var(--aa-radius-md);
    cursor: pointer;
    transition: all var(--aa-transition-normal);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--aa-primary-dark) 0%, #6d28d9 100%);
    opacity: 0;
    transition: opacity var(--aa-transition-normal);
}

.btn-login::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:hover::after {
    transform: rotate(45deg) translateX(100%);
}

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

.btn-content,
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.btn-loader {
    display: none;
}

.btn-arrow {
    transition: transform var(--aa-transition-fast);
}

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

/* Loading State */
.btn-login.loading .btn-content {
    display: none;
}

.btn-login.loading .btn-loader {
    display: flex;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px 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 Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--aa-light-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--aa-text-gray);
    font-weight: 500;
}

.trust-item i {
    color: #10b981;
    font-size: 0.875rem;
}

/* Login Footer */
.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--aa-light-border);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    width: 20px;
    height: 20px;
}

.footer-brand span {
    font-size: 0.8125rem;
    color: var(--aa-text-gray);
}

.footer-brand strong {
    background: var(--aa-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copyright {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .features {
        grid-template-columns: 1fr;
    }

    .branding-content {
        max-width: 480px;
    }

    .hero-statement h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 991px) {
    .login-container {
        justify-content: center;
        padding: 1rem;
        align-items: center;
    }

    .login-form-panel {
        max-width: 100%;
        background: transparent;
        padding: 1rem;
    }

    .login-card {
        max-width: 420px;
    }

    .bg-glow-1 {
        width: 400px;
        height: 400px;
        top: -150px;
        left: -100px;
    }

    .bg-glow-2 {
        width: 300px;
        height: 300px;
        bottom: -100px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0.75rem;
    }

    .login-card {
        padding: 1.75rem;
        border-radius: var(--aa-radius-xl);
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .welcome-icon {
        width: 48px;
        height: 48px;
    }

    .welcome-icon i {
        font-size: 1.25rem;
    }

    .mobile-logo img {
        width: 56px;
        height: 56px;
    }

    .mobile-brand {
        font-size: 1.125rem;
    }

    .btn-login {
        padding: 0.875rem 1.25rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .form-label {
        font-size: 0.8125rem;
    }

    .input-wrapper .form-control {
        padding: 0.8125rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   Dark Mode Support
   ============================================ */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: var(--aa-dark-card);
        box-shadow:
            0 0 0 1px var(--aa-dark-border),
            var(--aa-shadow-xl),
            var(--aa-shadow-glow);
    }

    .login-card::before {
        background: var(--aa-gradient);
    }

    .login-header h2 {
        color: var(--aa-text-white);
    }

    .login-header p {
        color: var(--aa-text-muted);
    }

    .form-label {
        color: var(--aa-text-light);
    }

    .input-wrapper .form-control {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--aa-dark-border);
        color: var(--aa-text-white);
    }

    .input-wrapper .form-control::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .input-wrapper .form-control:hover {
        border-color: rgba(255, 255, 255, 0.15);
    }

    .input-wrapper .form-control:focus {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--aa-primary);
    }

    .checkbox-custom {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--aa-dark-border);
    }

    .remember-text {
        color: var(--aa-text-muted);
    }

    .password-toggle {
        color: var(--aa-text-muted);
    }

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

    .trust-indicators,
    .login-footer {
        border-color: var(--aa-dark-border);
    }

    .trust-item {
        color: var(--aa-text-muted);
    }

    .footer-brand span {
        color: var(--aa-text-muted);
    }

    .copyright {
        color: rgba(255, 255, 255, 0.4);
    }

    .alert-danger {
        background: rgba(220, 38, 38, 0.15);
        color: #fca5a5;
    }

    .mobile-logo img {
        filter: drop-shadow(0 4px 15px rgba(37, 99, 235, 0.4));
    }

    .welcome-icon {
        background: rgba(37, 99, 235, 0.15);
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle {
        display: none;
    }

    .branding-logo {
        animation: none;
    }
}

/* Focus Visible */
.form-control:focus-visible,
.btn-login:focus-visible,
.password-toggle:focus-visible,
.remember-me:focus-visible .checkbox-custom {
    outline: 2px solid var(--aa-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .login-card {
        border: 2px solid;
    }

    .input-wrapper .form-control {
        border-width: 2px;
    }

    .btn-login {
        border: 2px solid white;
    }
}
