/* ============================================
   LOGIN-PREMIUM.CSS
   Ultra-Modern Login Page Styling
   Premium UI/UX - Zero functionality changes
   Professional Corporate Design
   ============================================ */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

/* ============================================
   DESIGN SYSTEM VARIABLES
   ============================================ */

:root {
    --primary: #0F172A;
    --primary-dark: #020617;
    --primary-light: #1E293B;
    --secondary: #3B82F6;
    --secondary-dark: #2563EB;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --success: #10B981;
    --danger: #EF4444;
    
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
    --gradient-secondary: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-bg: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
                    linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif !important;
    background: var(--gradient-bg) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Particles */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Floating Orbs Animation */
body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    pointer-events: none;
    animation: floatOrb 20s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============================================
   PREMIUM LOGIN CARD
   ============================================ */

.login-card {
    max-width: 480px !important;
    width: 100% !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 48px !important;
    padding: 2.5rem 2rem !important;
    box-shadow: var(--glass-shadow) !important;
    border: 1px solid var(--glass-border) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 10 !important;
    animation: cardGlow 4s ease-in-out infinite !important;
}

@keyframes cardGlow {
    0%, 100% { box-shadow: var(--glass-shadow); }
    50% { box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.2); }
}

.login-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 35px 60px -20px rgba(0, 0, 0, 0.3) !important;
}

/* Card Shine Effect */
.login-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.6s ease !important;
    pointer-events: none !important;
    border-radius: 48px !important;
}

.login-card:hover::before {
    left: 100% !important;
}

/* ============================================
   PREMIUM LOGO SECTION
   ============================================ */

.logo-container {
    margin-bottom: 2rem !important;
    position: relative !important;
}

.logo-frame {
    width: 100px !important;
    height: 100px !important;
    background: linear-gradient(135deg, white, #F8FAFC) !important;
    border-radius: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--shadow-xl) !important;
    margin: 0 auto 1rem !important;
    transition: all 0.3s ease !important;
    animation: logoFloat 3s ease-in-out infinite !important;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-frame img {
    width: 80% !important;
    height: 80% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.logo-frame:hover img {
    transform: scale(1.05) !important;
}

.logo-brand {
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    background: linear-gradient(135deg, #1E3A5F 0%, #3B82F6 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    text-align: center !important;
}

.logo-brand span {
    font-weight: 500 !important;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-size: 0.75rem !important;
    letter-spacing: 1.5px !important;
    margin-top: 0.25rem !important;
}

/* ============================================
   PREMIUM ACCESS TITLE
   ============================================ */

.access-title {
    text-align: center !important;
    margin: 1.5rem 0 2rem !important;
}

.access-title h2 {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    margin-bottom: 0.5rem !important;
}

.access-title p {
    color: #64748B !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* ============================================
   PREMIUM FORM INPUTS
   ============================================ */

.input-group {
    margin-bottom: 1.5rem !important;
}

.input-group label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    margin-bottom: 0.5rem !important;
}

.input-icon {
    font-size: 1rem !important;
    opacity: 0.8 !important;
}

.input-field {
    width: 100% !important;
    padding: 0.875rem 1.25rem !important;
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 20px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    color: #1E293B !important;
}

.input-field:focus {
    outline: none !important;
    border-color: #3B82F6 !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

.input-field::placeholder {
    color: #94A3B8 !important;
    font-weight: 400 !important;
}

/* Password Toggle */
.password-wrapper {
    position: relative !important;
}

.password-toggle {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    color: #94A3B8 !important;
    transition: all 0.2s ease !important;
    padding: 4px !important;
}

.password-toggle:hover {
    color: #3B82F6 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* ============================================
   PREMIUM ERROR BANNER
   ============================================ */

.error-banner {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%) !important;
    border-left: 4px solid #EF4444 !important;
    border-radius: 16px !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    animation: shakeError 0.4s ease-out !important;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-banner strong {
    font-size: 1.2rem !important;
}

/* ============================================
   PREMIUM LOGIN BUTTON
   ============================================ */

.btn-primary {
    width: 100% !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
    margin-top: 0.5rem !important;
    font-family: 'Inter', sans-serif !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-primary::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
}

.btn-primary:hover::before {
    width: 300px !important;
    height: 300px !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.35) !important;
}

.btn-primary:active {
    transform: translateY(1px) !important;
}

.btn-primary.loading {
    opacity: 0.9 !important;
    pointer-events: none !important;
    position: relative !important;
    color: transparent !important;
}

.btn-primary.loading::after {
    content: '' !important;
    position: absolute !important;
    width: 22px !important;
    height: 22px !important;
    top: 50% !important;
    left: 50% !important;
    margin-left: -11px !important;
    margin-top: -11px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 3px solid white !important;
    border-radius: 50% !important;
    animation: spin 0.7s linear infinite !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   PREMIUM LANGUAGE SWITCHER
   ============================================ */

.lang-options {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin: 2rem 0 1.5rem !important;
}

.lang-btn {
    background: transparent !important;
    border: 1.5px solid #E2E8F0 !important;
    color: #475569 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.lang-btn:hover {
    background: #F8FAFC !important;
    border-color: #3B82F6 !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   PREMIUM FOOTER
   ============================================ */

.footer-links {
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    margin: 1.5rem 0 1rem !important;
}

.footer-links a {
    color: #64748B !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.footer-links a:hover {
    color: #3B82F6 !important;
}

.copyright {
    text-align: center !important;
    color: #94A3B8 !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    border-top: 1px solid #E2E8F0 !important;
    padding-top: 1.5rem !important;
    margin-top: 1rem !important;
}

.copyright small {
    display: block !important;
    margin-top: 0.25rem !important;
    opacity: 0.7 !important;
}

/* ============================================
   VALIDATION STYLES
   ============================================ */

.input-field.success {
    border-color: #10B981 !important;
    background: #D1FAE5 !important;
}

.input-field.error {
    border-color: #EF4444 !important;
    background: #FEE2E2 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 576px) {
    body {
        padding: 1rem !important;
    }
    
    .login-card {
        padding: 1.75rem 1.25rem !important;
        border-radius: 36px !important;
    }
    
    .logo-frame {
        width: 80px !important;
        height: 80px !important;
        border-radius: 24px !important;
    }
    
    .logo-brand {
        font-size: 1.5rem !important;
    }
    
    .access-title h2 {
        font-size: 1.35rem !important;
    }
    
    .input-field {
        padding: 0.75rem 1rem !important;
    }
    
    .btn-primary {
        padding: 0.875rem 1.25rem !important;
    }
    
    .lang-options {
        gap: 0.75rem !important;
    }
    
    .lang-btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .footer-links {
        gap: 1rem !important;
    }
    
    .footer-links a {
        font-size: 0.7rem !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Input Focus Ripple Effect */
.input-field:focus {
    animation: ripple 0.4s ease-out;
}

@keyframes ripple {
    from {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }
    to {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(30, 41, 59, 0.98) !important;
    }
    
    .input-field {
        background: #1E293B !important;
        border-color: #334155 !important;
        color: #F1F5F9 !important;
    }
    
    .input-field:focus {
        background: #1E293B !important;
    }
    
    .input-field::placeholder {
        color: #64748B !important;
    }
    
    .input-group label {
        color: #94A3B8 !important;
    }
    
    .access-title h2 {
        background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
    }
    
    .logo-brand {
        background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
    }
    
    .lang-btn {
        border-color: #475569 !important;
        color: #CBD5E1 !important;
    }
    
    .lang-btn:hover {
        background: #1E293B !important;
    }
    
    .footer-links a {
        color: #94A3B8 !important;
    }
    
    .copyright {
        border-top-color: #334155 !important;
        color: #64748B !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white !important;
        padding: 0 !important;
    }
    
    .login-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .btn-primary, .lang-options, .footer-links {
        display: none !important;
    }
}

/* ============================================
   PARTICLE EFFECT FOR BACKGROUND
   ============================================ */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}