/* Auth pages (login.php, index.php) — extracted from duplicated inline <style> blocks. */
        /* Reset and base styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: #333;
            background: #f8f9fa;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        /* High DPI display support */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .auth-logo i {
                font-size: 12px;
            }
        }
        
        /* Main auth container */
        .auth-main {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
        }
        
        /* Animated background elements */
        .auth-main::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="50" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="300" r="30" fill="rgba(255,255,255,0.1)"/><circle cx="600" cy="700" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
            animation: float 20s infinite ease-in-out;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }
        
        /* Auth box */
        .auth-box {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            padding: 40px;
            width: 100%;
            max-width: 420px;
            position: relative;
            z-index: 1;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        /* Logo and branding */
        .auth-logo {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .auth-logo i {
            font-size: 12px;
            color: #667eea;
            margin-bottom: 15px;
            display: block;
        }
        
        .auth-logo h1 {
            color: #2c3e50;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }
        
        .auth-logo p {
            color: #7f8c8d;
            font-size: 12px;
            font-weight: 400;
            margin-bottom: 0;
        }
        
        /* Form styling */
        .form-group {
            margin-bottom: 25px;
            position: relative;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #2c3e50;
            font-size: 12px;
        }
        
        .form-control {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 12px;
            transition: all 0.3s ease;
            background: #fff;
            color: #2c3e50;
            font-family: inherit;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
            transform: translateY(-2px);
        }
        
        .form-control::placeholder {
            color: #adb5bd;
            opacity: 1;
        }
        
        /* Button styling */
        .btn-primary {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        }
        
        .btn-primary:active {
            transform: translateY(0);
        }
        
        .btn-primary::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;
        }
        
        .btn-primary:hover::before {
            left: 100%;
        }
        
        /* Checkbox styling */
        .form-check {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .form-check-input {
            width: 20px;
            height: 20px;
            margin-right: 12px;
            accent-color: #667eea;
        }
        
        .form-check-label {
            color: #6c757d;
            font-size: 12px;
            cursor: pointer;
        }
        
        /* Alert styling */
        .alert {
            padding: 16px 20px;
            border-radius: 12px;
            border: none;
            margin-bottom: 25px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .alert-danger {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
            color: white;
        }
        
        .alert-success {
            background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
            color: white;
        }
        
        .alert i {
            margin-right: 8px;
        }
        
        /* Footer styling */
        .auth-footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 25px;
            border-top: 1px solid #e9ecef;
        }
        
        .auth-footer p {
            color: #6c757d;
            font-size: 12px;
            margin-bottom: 10px;
        }
        
        .auth-footer a {
            color: #667eea;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .auth-footer a:hover {
            color: #764ba2;
            text-decoration: underline;
        }
        
        /* Loading state */
        .btn-loading {
            position: relative;
            color: transparent;
        }
        
        .btn-loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border: 2px solid transparent;
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }
        
        /* Responsive design */
        @media (max-width: 768px) {
            .auth-main {
                padding: 15px;
            }
            
            .auth-box {
                padding: 30px 25px;
                border-radius: 15px;
                max-width: 100%;
            }
            
            .auth-logo h1 {
                font-size: 12px;
            }
            
            .auth-logo p {
                font-size: 12px;
            }
            
            .form-control {
                padding: 14px 16px;
                font-size: 12px; /* Prevents zoom on iOS */
            }
            
            .btn-primary {
                padding: 14px;
                font-size: 12px;
            }
        }
        
        @media (max-width: 480px) {
            .auth-main {
                padding: 10px;
            }
            
            .auth-box {
                padding: 25px 20px;
                border-radius: 12px;
            }
            
            .auth-logo {
                margin-bottom: 30px;
            }
            
            .auth-logo h1 {
                font-size: 12px;
            }
            
            .form-group {
                margin-bottom: 20px;
            }
        }
        
        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .auth-box {
                background: white;
                border: 2px solid #000;
            }
            
            .form-control {
                border: 2px solid #000;
            }
            
            .btn-primary {
                background: #000;
                border: 2px solid #000;
            }
        }
        
        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            .auth-main::before {
                animation: none;
            }
            
            .form-control,
            .btn-primary,
            .auth-footer a {
                transition: none;
            }
        }
        
        /* Print styles */
        @media print {
            .auth-main {
                background: white;
                min-height: auto;
            }
            
            .auth-box {
                box-shadow: none;
                border: 1px solid #000;
            }
        }
