/* Ultra-Modern Premium Login Page - Universe's Best Design */
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 🟡 Birincil Altın Renk Paleti */
    --color-primary: #C89B42;        /* Primary Gold (ana vurgu) */
    --color-primary-light: #D4A856;  /* Hover tonu */
    --color-primary-dark: #B5862A;   /* Aktif durum tonu */
    
    /* ⚪ Nötr Gri ve Beyaz Tonları */
    --color-neutral-bg: #FAFAFA;     /* En açık arka plan */
    --color-neutral-card: #F5F5F5;   /* Kart arka planları */
    --color-text-primary: #757575;   /* Primary text */
    --color-text-heading: #616161;   /* Başlıklar */
    --color-text-dark: #424242;      /* Koyu text */
    --color-text-darkest: #212121;   /* En koyu metin */
    --color-text-secondary: #9E9E9E; /* Secondary text */
    --color-neutral-border: #E0E0E0; /* Hafif gri border */
    
    /* 🏦 Kurumsal Güven Renkleri */
    --color-trust: #1E3A8A;          /* Trust Navy */
    --color-banking: #003366;        /* Bankacılık mavisi */
    
    /* ✅ Semantik Renkler */
    --color-success: #2E7D32;        /* Başarı / Pozitif */
    --color-error: #C62828;          /* Zarar / Negatif */
    
    /* 🌈 Professional Gradients */
    --gradient-primary: linear-gradient(135deg, #C89B42 0%, #D4A856 100%);
    --aurora-gradient: linear-gradient(135deg, #1E3A8A 0%, #003366 20%, #C89B42 40%, #1E3A8A 60%, #003366 80%, #C89B42 100%);
    --space-gradient: radial-gradient(ellipse at bottom, #1E3A8A 0%, #003366 100%);
    --premium-gradient: linear-gradient(135deg, #C89B42 0%, #1E3A8A 100%);
    --glow-gradient: linear-gradient(45deg, #C89B42, #D4A856, #C89B42);
    
    /* 🧊 Glassmorphism */
    --glass-white: rgba(245, 245, 245, 0.9);
    --glass-border: rgba(200, 155, 66, 0.25);
    --glass-shadow: rgba(33, 33, 33, 0.1);
    
    /* Typography */
    --font-premium: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Animations */
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Legacy support - mapping old variables */
    --premium-purple: var(--color-primary);
    --premium-blue: var(--color-trust);
    --premium-cyan: var(--color-text-primary);
    --premium-pink: var(--color-primary);
    --premium-indigo: var(--color-banking);
}

/* Premium Typography */
body {
    font-family: var(--font-premium);
    background: #0a0e27;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Simplified Background */
.universe-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #0a0e27 0%, #020817 100%);
    overflow: hidden;
}

/* Simple Stars Background */
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
}

/* Three layers of stars for depth */
.stars-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20px 30px, #ffffff 0%, #ffffff 1px, transparent 1.5px),
        radial-gradient(circle at 40px 70px, #ffffff 0%, #ffffff 1px, transparent 1.5px),
        radial-gradient(circle at 50px 160px, #ffffff 0%, #ffffff 0.5px, transparent 1px),
        radial-gradient(circle at 130px 40px, #ffffff 0%, #ffffff 1px, transparent 1.5px),
        radial-gradient(circle at 80px 10px, #ffffff 0%, #ffffff 0.5px, transparent 1px);
    background-repeat: repeat;
    background-size: 200px 200px;
}

.stars-layer-1 {
    animation: stars-move 100s linear infinite;
    opacity: 1;
    filter: none;
}

.stars-layer-2 {
    background-image: 
        radial-gradient(circle at 50px 80px, #ffffff 0%, #ffffff 1.5px, transparent 2px),
        radial-gradient(circle at 90px 40px, #ffffff 0%, #ffffff 1px, transparent 1.5px),
        radial-gradient(circle at 130px 80px, #ffffff 0%, #ffffff 1px, transparent 1.5px);
    background-size: 300px 300px;
    animation: stars-move 150s linear infinite;
    opacity: 1;
    filter: none;
}

.stars-layer-3 {
    background-image: 
        radial-gradient(circle at 70px 100px, #ffffff 0%, #ffffff 1px, transparent 1.5px),
        radial-gradient(circle at 160px 50px, #ffffff 0%, #ffffff 0.5px, transparent 1px);
    background-size: 400px 400px;
    animation: stars-move 200s linear infinite;
    opacity: 0.9;
    filter: none;
}

/* Twinkling stars */
.twinkling-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 0;
    animation: twinkle 3s ease-in-out infinite;
    box-shadow: 0 0 2px #ffffff, 0 0 4px #ffffff, 0 0 6px #ffffff;
    filter: none;
}

.star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; width: 1px; height: 1px; }
.star:nth-child(2) { top: 20%; left: 40%; animation-delay: 1s; width: 2px; height: 2px; }
.star:nth-child(3) { top: 30%; left: 60%; animation-delay: 2s; width: 1px; height: 1px; }
.star:nth-child(4) { top: 40%; left: 80%; animation-delay: 0.5s; width: 3px; height: 3px; }
.star:nth-child(5) { top: 50%; left: 30%; animation-delay: 1.5s; width: 2px; height: 2px; }
.star:nth-child(6) { top: 60%; left: 70%; animation-delay: 2.5s; width: 1px; height: 1px; }
.star:nth-child(7) { top: 70%; left: 50%; animation-delay: 0.3s; width: 2px; height: 2px; }
.star:nth-child(8) { top: 80%; left: 10%; animation-delay: 1.3s; width: 1px; height: 1px; }
.star:nth-child(9) { top: 90%; left: 90%; animation-delay: 2.3s; width: 3px; height: 3px; }
.star:nth-child(10) { top: 15%; left: 85%; animation-delay: 0.8s; width: 2px; height: 2px; }

@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.5);
    }
}

/* Aurora removed */

/* Nebula removed */

/* Shooting stars removed */

/* Login Container with Advanced Glassmorphism */
.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 700px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px 0 var(--glass-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 80px rgba(200, 155, 66, 0.3);
    animation: float-in 1.2s cubic-bezier(0.23, 1, 0.320, 1);
    transition: var(--transition-smooth);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 48px 0 var(--glass-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        0 30px 100px rgba(200, 155, 66, 0.4);
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Left Panel - Premium Branding */
.login-left {
    position: relative;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(0, 51, 102, 0.98) 100%);
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

/* Pulse glow removed */

.brand-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    animation: logo-reveal 1s cubic-bezier(0.23, 1, 0.320, 1) 0.3s backwards;
}

@keyframes logo-reveal {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 10px 40px rgba(200, 155, 66, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    animation: logo-float 3s ease-in-out infinite;
}

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

.logo-icon i {
    font-size: 2.5rem;
    color: white;
    filter: drop-shadow(0 0 20px rgba(200, 155, 66, 0.8));
    animation: icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(200, 155, 66, 0.8)); }
    50% { filter: drop-shadow(0 0 30px rgba(200, 155, 66, 1)); }
}

.brand-name {
    color: white;
}

.brand-name h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--glow-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 15px rgba(200, 155, 66, 0.6));
    animation: title-shimmer 3s ease-in-out infinite;
    position: relative;
}

.brand-name h1::after {
    content: 'Nova Invest';
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: none;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px rgba(200, 155, 66, 0.3);
    filter: blur(8px);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        opacity: 0.5;
        filter: blur(8px);
    }
    50% { 
        opacity: 0.8;
        filter: blur(12px);
    }
}

.brand-name p {
    font-size: 1.3rem;
    color: var(--color-primary-light);
    margin-top: -5px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    animation: subtitle-fade 2s ease-in-out;
}

@keyframes subtitle-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.9; transform: translateY(0); }
}

.features-showcase {
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

/* Floating particles removed */

.feature-item:nth-child(1) {
    animation: features-reveal 1s cubic-bezier(0.23, 1, 0.320, 1) 0.6s backwards;
}

.feature-item:nth-child(1) .feature-icon {
    animation: shield-pulse 3s ease-in-out infinite;
}

@keyframes shield-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.feature-item:nth-child(2) {
    animation: features-reveal 1s cubic-bezier(0.23, 1, 0.320, 1) 0.8s backwards;
}

.feature-item:nth-child(2) .feature-icon {
    animation: chart-wave 4s ease-in-out infinite;
}

@keyframes chart-wave {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(3px); }
}

.feature-item:nth-child(3) {
    animation: features-reveal 1s cubic-bezier(0.23, 1, 0.320, 1) 1s backwards;
}

.feature-item:nth-child(3) .feature-icon {
    animation: infinity-rotate 8s linear infinite;
}

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

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

@keyframes title-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: 
        linear-gradient(135deg, rgba(245, 245, 245, 0.02) 0%, rgba(245, 245, 245, 0.05) 100%),
        rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-radius: 20px;
    border: 1px solid rgba(200, 155, 66, 0.2);
    transition: var(--transition-smooth);
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 155, 66, 0.1), transparent);
    transition: left 0.6s;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    background: 
        linear-gradient(135deg, rgba(200, 155, 66, 0.08) 0%, rgba(245, 245, 245, 0.1) 100%),
        rgba(255, 255, 255, 0.03);
    transform: translateX(10px) scale(1.02);
    box-shadow: 
        0 8px 40px rgba(200, 155, 66, 0.3),
        inset 0 0 0 1px rgba(200, 155, 66, 0.2),
        0 0 60px rgba(200, 155, 66, 0.15);
    border-color: rgba(200, 155, 66, 0.4);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 
        0 8px 25px rgba(200, 155, 66, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: var(--transition-smooth);
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.feature-item:hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 
        0 12px 35px rgba(200, 155, 66, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.feature-item:hover .feature-icon::after {
    opacity: 0.8;
    animation: icon-pulse 1s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.feature-content h3 {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
}

.feature-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-content h3 {
    background: var(--glow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item:hover .feature-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* Right Panel - Premium Login Form */
.login-right {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.05) 0%, rgba(200, 155, 66, 0.02) 100%);
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: form-reveal 1s cubic-bezier(0.23, 1, 0.320, 1) 0.9s backwards;
}

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

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--glow-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 8px rgba(200, 155, 66, 0.3));
    animation: title-shimmer 3s ease-in-out infinite;
}

.form-header p {
    color: var(--color-text-primary);
    font-size: 1rem;
}

/* Premium Input Fields */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.input-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--color-neutral-card);
    border: 1px solid var(--color-neutral-border);
    transition: var(--transition-smooth);
}

.input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 155, 66, 0.2), transparent);
    transition: left 0.6s;
}

.input-wrapper:focus-within::before {
    left: 100%;
}

.input-wrapper:focus-within {
    background: rgba(245, 245, 245, 0.08);
    border-color: var(--color-primary);
    box-shadow: 
        0 0 0 4px rgba(200, 155, 66, 0.1),
        0 10px 40px rgba(200, 155, 66, 0.2);
}

.form-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: transparent;
    border: none;
    color: var(--color-text-darkest);
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    font-family: var(--font-premium);
}

.form-input::placeholder {
    color: var(--color-text-secondary);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-primary);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.password-toggle:hover {
    background: rgba(200, 155, 66, 0.1);
    color: var(--color-primary);
}

/* Premium Login Button */
.login-button {
    width: 100%;
    padding: 18px;
    margin-top: 32px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 
        0 10px 30px rgba(200, 155, 66, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.login-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s;
}

.login-button:hover::before {
    transform: scale(1);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(200, 155, 66, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

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

.button-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button-content i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.login-button:hover .button-content i {
    transform: translateX(5px);
}

/* Loading State */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.login-button.loading .button-content {
    visibility: hidden;
}

.login-button.loading .loading-spinner {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Premium Checkbox */
.remember-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

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

.checkbox-wrapper input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    position: relative;
    transition: var(--transition-smooth);
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: var(--gradient-primary);
    border-color: transparent;
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: check-bounce 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes check-bounce {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}

.checkbox-label {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    user-select: none;
}

.forgot-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

/* Floating elements removed */

/* Float animations removed */

/* Success Animation */
.success-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 14px;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Error Shake Animation */
.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 500px;
        height: auto;
    }
    
    .login-left {
        padding: 40px;
        min-height: 300px;
    }
    
    .features-showcase {
        display: none;
    }
    
    .login-right {
        padding: 40px;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 30px;
        min-height: 250px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .brand-name h1 {
        font-size: 2rem;
    }
    
    .login-right {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
}

/* Premium Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.premium-loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--premium-purple);
    animation: rotate 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--premium-pink);
    animation-duration: 1s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--premium-cyan);
    animation-duration: 2s;
}

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

.loader-text {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Premium Notification */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: var(--transition-smooth);
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Ensure stars work on all devices */
@supports (animation: none) {
    .stars-layer {
        animation: none;
        opacity: 0.3;
    }
}

/* Performance optimization for low-end devices */
@media (prefers-reduced-motion: reduce) {
    .stars-layer,
    .star {
        animation: none;
    }
    
    .star {
        opacity: 0.8;
    }
}

/* Footer */
.login-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.login-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    animation: footer-fade 2s ease-in-out;
}

@keyframes footer-fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
    .login-container {
        display: none;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 1200px) {
    .login-container {
        padding: 20px;
    }
    
    .login-card {
        max-width: 900px;
    }
}

@media (max-width: 968px) {
    .login-card {
        flex-direction: column;
        height: auto;
        max-height: none;
        overflow-y: auto;
    }
    
    .login-left,
    .login-right {
        width: 100%;
        height: auto;
        min-height: 50vh;
    }
    
    .login-left {
        padding: 60px 40px;
    }
    
    .features-showcase {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    /* Optimize stars for mobile */
    .stars-layer {
        animation-duration: 200s;
    }
    
    .stars-layer-2 {
        animation-duration: 300s;
    }
    
    .stars-layer-3 {
        display: none; /* Remove third layer on mobile */
    }
    
    .twinkling-stars .star:nth-child(n+6) {
        display: none; /* Show only 5 twinkling stars on mobile */
    }
    
    /* Simple background for very low-end devices */
    @media (max-width: 480px) {
        .stars-container {
            opacity: 0.5; /* Reduce opacity for better performance */
        }
    }
    
    body {
        background: #0f0f1e;
        overflow-x: hidden !important;
    }
    
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .login-left {
        padding: 40px 20px;
        background: linear-gradient(135deg, var(--color-trust) 0%, var(--color-banking) 100%);
    }
    
    .brand-logo {
        margin-bottom: 30px;
    }
    
    .logo-container {
        transform: scale(0.8);
    }
    
    .features-showcase {
        gap: 20px;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .feature-content h3 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.8rem;
    }
    
    .login-right {
        padding: 40px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 16px 45px 16px 45px;
        font-size: 0.95rem;
    }
    
    .login-button {
        padding: 16px;
        font-size: 1rem;
    }
    
    .notification {
        right: 15px;
        left: 15px;
        width: auto;
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Ultra mobile optimization */
    .login-container {
        padding: 0;
        height: 100vh;
        align-items: stretch;
    }
    
    .login-card {
        border-radius: 0;
        height: 100%;
        max-width: none;
        margin: 0;
    }
    
    .login-left {
        display: none; /* Hide branding on very small screens */
    }
    
    .login-right {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .login-form-wrapper {
        width: 100%;
        max-width: 320px;
    }
    
    .form-header {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-header p {
        font-size: 0.85rem;
    }
    
    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .remember-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .login-footer {
        bottom: 10px;
        font-size: 0.75rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .login-button:hover,
    .form-input:hover,
    .forgot-link:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .form-input,
    .login-button {
        min-height: 48px;
    }
    
    .password-toggle {
        width: 48px;
        height: 48px;
    }
    
    .checkbox-wrapper {
        padding: 8px 0;
    }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        flex-direction: row;
        height: auto;
        max-height: 90vh;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 20px;
    }
    
    .form-header {
        margin-bottom: 20px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
}