/**
 * Admin Login Page Styles
 * ePayslip Management System - Admin Portal
 * Theme: Futuristic Dark with Glassmorphism & Neon Accents
 */

/* ================================
   Theme Variables - FUTURISTIC DARK (ADMIN)
   ================================ */
:root {
    /* Primary Colors - Admin uses deeper blue for authority */
    --admin-primary: #4f7cff;
    --admin-primary-hover: #6b91ff;
    --admin-primary-light: rgba(79, 124, 255, 0.15);
    --admin-primary-dark: #3d5cc7;
    --admin-primary-rgb: 79, 124, 255;
    
    /* Accent Colors - Neon Cyan */
    --accent: #00d4ff;
    --accent-light: rgba(0, 212, 255, 0.15);
    --accent-rgb: 0, 212, 255;
    --accent-glow: 0 0 20px rgba(0, 212, 255, 0.5);
    
    /* Admin Accent - Neon Orange/Amber for admin distinction */
    --admin-accent: #ff9f43;
    --admin-accent-light: rgba(255, 159, 67, 0.15);
    --admin-accent-rgb: 255, 159, 67;
    --admin-accent-glow: 0 0 20px rgba(255, 159, 67, 0.5);
    
    /* Dark Theme Backgrounds */
    --bg-dark: #0a0f1c;
    --bg-darker: #060912;
    --bg-card: rgba(15, 23, 42, 0.8);
    --bg-elevated: rgba(30, 41, 59, 0.6);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Success/Warning/Error */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.15);
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: var(--accent);
    
    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(79, 124, 255, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-neon: 0 0 30px rgba(79, 124, 255, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================================
   Base Styles
   ================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* ================================
   Animated Background
   ================================ */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f1629 50%, var(--bg-darker) 100%);
}

/* Animated Grid */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(79, 124, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 124, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Gradient Overlay */
.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79, 124, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(255, 159, 67, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 90% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 40%);
}

/* Floating Neon Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(79, 124, 255, 0.15);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: rgba(255, 159, 67, 0.12);
    bottom: -15%;
    right: -5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(0, 212, 255, 0.1);
    top: 40%;
    right: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: rgba(79, 124, 255, 0.1);
    bottom: 30%;
    left: 10%;
    animation-delay: -7s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(-20px, -10px) scale(1.02); }
}

/* ================================
   Admin Login Container
   ================================ */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 40px 24px;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* ================================
   Login Card - Glass Effect
   ================================ */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--glass-shadow);
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    animation: cardAppear 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

/* Neon Border Glow Animation */
.login-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--admin-primary), 
        var(--accent), 
        var(--admin-accent),
        var(--admin-primary));
    background-size: 400% 400%;
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0;
    animation: borderGlow 8s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.login-card:hover::before {
    opacity: 0.5;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================
   Login Header
   ================================ */
.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.seal-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--admin-primary-light), var(--admin-accent-light));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.seal-wrapper::before {
    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);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.seal-wrapper:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--admin-accent-glow);
    border-color: var(--admin-accent);
}

.seal {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(1.1);
    position: relative;
    z-index: 1;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(79, 124, 255, 0.3);
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--admin-accent-light);
    border: 1px solid rgba(255, 159, 67, 0.3);
    border-radius: var(--radius-full);
    color: var(--admin-accent);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 159, 67, 0.2);
}

.header-badge.admin-badge {
    background: var(--admin-accent-light);
    border-color: rgba(255, 159, 67, 0.3);
    color: var(--admin-accent);
}

.header-badge i {
    font-size: 0.8rem;
}

/* ================================
   Alert Container
   ================================ */
.alert-container {
    margin-bottom: 24px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    animation: alertSlide 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: var(--error-light);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-warning {
    background: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.alert-info {
    background: var(--admin-primary-light);
    border: 1px solid rgba(79, 124, 255, 0.3);
    color: #93c5fd;
}

.alert i {
    font-size: 1.1rem;
    margin-top: 1px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-message {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ================================
   Login Form
   ================================ */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.form-label i {
    color: var(--admin-primary);
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 50px;
    background: var(--glass-bg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--admin-primary);
    background: rgba(79, 124, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.15), var(--shadow-neon);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-card) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-input:focus + .input-icon,
.form-input:focus ~ .input-icon {
    color: var(--admin-primary);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.toggle-password:hover {
    color: var(--admin-primary);
    background: var(--admin-primary-light);
}

.form-error {
    font-size: 0.8rem;
    color: var(--error);
    min-height: 18px;
}

/* ================================
   Form Options (Remember Me & Forgot)
   ================================ */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -8px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background: var(--glass-bg);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--admin-primary);
    box-shadow: 0 0 10px rgba(79, 124, 255, 0.3);
}

.checkbox-wrapper input:checked ~ .checkmark {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    box-shadow: var(--shadow-neon);
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.forgot-link:hover {
    color: var(--admin-primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ================================
   Login Button - Neon Style
   ================================ */
.btn-login {
    position: relative;
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(79, 124, 255, 0.4);
    margin-top: 8px;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--admin-primary-hover) 0%, var(--admin-primary) 100%);
    box-shadow: 0 6px 30px rgba(79, 124, 255, 0.6), var(--shadow-neon);
    transform: translateY(-2px);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-login.loading .btn-text,
.btn-login.loading .btn-icon {
    opacity: 0;
}

.btn-login.loading .btn-loader {
    opacity: 1;
}

.btn-loader {
    position: absolute;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn-login:hover .btn-icon {
    transform: translateX(4px);
}

/* ================================
   Form Divider
   ================================ */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

.form-divider span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ================================
   SSO Options
   ================================ */
.sso-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-sso {
    width: 100%;
    padding: 14px 24px;
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.btn-sso:hover {
    border-color: var(--admin-primary);
    background: var(--admin-primary-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-neon);
}

.btn-sso i {
    font-size: 1.1rem;
}

/* ================================
   Security Notice
   ================================ */
.security-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--admin-accent-light);
    border: 1px solid rgba(255, 159, 67, 0.2);
    border-radius: var(--radius-lg);
    margin-top: 28px;
}

.security-notice i {
    color: var(--admin-accent);
    font-size: 1.2rem;
    margin-top: 2px;
}

.security-notice p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ================================
   Quick Links
   ================================ */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.quick-link:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.quick-link i {
    font-size: 0.85rem;
}

/* ================================
   Info Panel - Glass Style
   ================================ */
.info-panel {
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.1) 0%, rgba(255, 159, 67, 0.08) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 440px;
    margin-left: 32px;
    animation: cardAppear 0.6s ease-out 0.1s both;
}

.info-content {
    color: var(--text-primary);
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--admin-primary-light), var(--admin-accent-light));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--admin-accent);
    border: 1px solid var(--border-light);
    box-shadow: var(--admin-accent-glow);
}

.info-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(79, 124, 255, 0.3);
}

.info-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-feature .feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    transition: all var(--transition-base);
}

.info-feature:hover .feature-icon {
    background: var(--admin-primary-light);
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    box-shadow: var(--shadow-neon);
}

.info-feature .feature-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.info-feature .feature-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.info-support {
    margin-top: 36px;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
}

.info-support h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.info-support h4 i {
    color: var(--accent);
}

.info-support > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.support-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-contacts p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
}

.support-contacts p:hover {
    color: var(--accent);
}

.support-contacts i {
    width: 20px;
    font-size: 0.9rem;
    color: var(--admin-primary);
}

/* ================================
   Login Footer
   ================================ */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    padding: 16px 24px;
    z-index: 100;
}

.login-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links .separator {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* ================================
   Modal Styles
   ================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--admin-primary);
}

.modal-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--error-light);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.modal-body {
    padding: 28px;
}

.modal-body > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.modal-body .form-group {
    margin-bottom: 24px;
}

/* ================================
   Spinner Animation
   ================================ */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   Responsive Styles
   ================================ */
@media (max-width: 1024px) {
    .admin-login-container {
        flex-direction: column;
        align-items: center;
        padding: 40px 24px 100px;
    }

    .info-panel {
        display: none;
    }

    .login-card {
        max-width: 100%;
        width: 100%;
        max-width: 480px;
    }
}

@media (max-width: 600px) {
    .admin-login-container {
        padding: 24px 16px 100px;
    }

    .login-card {
        padding: 36px 24px;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .seal-wrapper {
        width: 70px;
        height: 70px;
    }

    .seal {
        width: 44px;
        height: 44px;
    }

    .btn-login {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .quick-links {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    .login-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .header-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .background-wrapper,
    .info-panel,
    .login-footer,
    .modal-overlay {
        display: none;
    }

    .admin-login-container {
        min-height: auto;
        padding: 0;
    }

    .login-card {
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
    }
}