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

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

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

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

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(30px, -30px) scale(1.05); }
            50% { transform: translate(0, -50px) scale(1); }
            75% { transform: translate(-30px, -30px) scale(0.95); }
        }

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

        @keyframes iconBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        @keyframes borderGlow {
            0%, 100% { box-shadow: 0 0 5px rgba(26, 26, 26, 0.1); }
            50% { box-shadow: 0 0 20px rgba(26, 26, 26, 0.2); }
        }

        /* ===== BODY & BACKGROUND ===== */
        body {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f5f5;
            position: relative;
            overflow: hidden;
        }

        /* Subtle grid pattern background */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image:
                linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: 0;
            animation: fadeIn 1s ease-out;
        }

        /* Animated gradient orbs */
        .bg-shape {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            animation: float 20s infinite ease-in-out;
            z-index: 0;
        }

        .bg-shape-1 {
            width: 500px;
            height: 500px;
            background: rgba(26, 26, 26, 0.06);
            top: -150px;
            right: -100px;
            animation-delay: 0s;
        }

        .bg-shape-2 {
            width: 400px;
            height: 400px;
            background: rgba(26, 26, 26, 0.04);
            bottom: -100px;
            left: -100px;
            animation-delay: -7s;
        }

        .bg-shape-3 {
            width: 300px;
            height: 300px;
            background: rgba(26, 26, 26, 0.05);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation-delay: -3s;
        }

        /* ===== AUTH CARD ===== */
        .auth-card {
            background: white;
            border-radius: 1rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                        0 2px 4px -1px rgba(0, 0, 0, 0.06),
                        0 20px 40px -10px rgba(0, 0, 0, 0.1);
            max-width: 420px;
            width: 100%;
            border: 1px solid #e0e0e0;
            position: relative;
            z-index: 10;
            animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            transition: all 0.3s ease;
        }

        .auth-card:hover {
            box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.12),
                        0 4px 8px -2px rgba(0, 0, 0, 0.08),
                        0 25px 50px -12px rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }

        /* ===== AUTH HEADER ===== */
        .auth-header {
            background: #1a1a1a;
            color: white;
            border-radius: 1rem 1rem 0 0;
            padding: 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .auth-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            animation: fadeIn 0.8s ease-out 0.3s backwards;
        }

        .auth-header::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                45deg,
                transparent 40%,
                rgba(255, 255, 255, 0.03) 50%,
                transparent 60%
            );
            animation: shimmer 3s infinite;
        }

        .auth-header h2,
        .auth-header p {
            position: relative;
            z-index: 1;
        }

        .auth-header h2 {
            font-weight: 600;
            animation: fadeIn 0.6s ease-out 0.2s backwards;
        }

        .auth-header h2 i {
            display: inline-block;
            animation: iconBounce 2s ease-in-out infinite;
        }

        .auth-header p {
            animation: fadeIn 0.6s ease-out 0.4s backwards;
        }

        /* ===== AUTH BODY ===== */
        .auth-body {
            padding: 2rem;
        }

        /* ===== FORM ELEMENTS ===== */
        .form-label {
            font-weight: 500;
            color: #333333;
            margin-bottom: 0.5rem;
            transition: color 0.2s ease;
        }

        .form-control {
            border: 1px solid #e0e0e0;
            padding: 0.75rem 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: white;
        }

        .form-control:focus {
            border-color: #666666;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }

        .form-control:hover:not(:focus) {
            border-color: #cccccc;
        }

        /* ===== INPUT GROUPS ===== */
        .input-group {
            transition: all 0.3s ease;
        }

        .input-group-text {
            background: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-right: none;
            color: #666666;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .input-group .form-control {
            border-left: none;
        }

        .input-group:focus-within {
            transform: translateY(-1px);
        }

        .input-group:focus-within .input-group-text {
            border-color: #666666;
            color: #333333;
            background: #f0f0f0;
        }

        .input-group:focus-within .form-control {
            border-color: #666666;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
        }

        .input-group-text i {
            transition: transform 0.2s ease;
        }

        .input-group:focus-within .input-group-text i {
            transform: scale(1.1);
        }

        /* ===== BUTTONS ===== */
        .btn {
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.5s ease, height 0.5s ease;
        }

        .btn:active::before {
            width: 300px;
            height: 300px;
        }

        .btn-primary {
            background: #1a1a1a;
            border: none;
            padding: 0.75rem 1.5rem;
            font-weight: 500;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .btn-primary:hover {
            background: #333333;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .btn-primary i {
            transition: transform 0.2s ease;
        }

        .btn-primary:hover i {
            transform: translateX(3px);
        }

        .btn-outline-secondary {
            transition: all 0.2s ease;
        }

        .btn-outline-secondary:hover {
            transform: scale(1.05);
        }

        /* ===== LINKS ===== */
        .auth-link {
            color: #333333;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            position: relative;
        }

        .auth-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: #1a1a1a;
            transition: width 0.3s ease;
        }

        .auth-link:hover {
            color: #000000;
        }

        .auth-link:hover::after {
            width: 100%;
        }

        /* ===== ALERTS ===== */
        .alert {
            border: none;
            border-radius: 0.75rem;
            animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        }

        /* ===== CHECKBOXES ===== */
        .form-check-input {
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        .form-check-input:checked {
            background-color: #1a1a1a;
            border-color: #1a1a1a;
            transform: scale(1.1);
        }

        .form-check-input:focus {
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
            border-color: #666666;
        }

        .form-check-input:hover:not(:checked) {
            border-color: #999999;
        }

        .form-check-label {
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .form-check-label:hover {
            color: #000000;
        }

        /* ===== PASSWORD TOGGLE ===== */
        .password-toggle {
            transition: all 0.2s ease;
        }

        .password-toggle:hover {
            background: #e9ecef;
            transform: scale(1.05);
        }

        /* ===== CUSTOM SCROLLBAR ===== */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f0f0f0;
        }

        ::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

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

/* auth/login.php */
    /* Password toggle button */
    .password-toggle {
        border-color: #dee2e6;
        background: #f8f9fa;
    }
    .password-toggle:hover {
        background: #e9ecef;
    }

/* auth/register.php */
    .invalid-feedback {
        display: none;
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    .invalid-feedback.show {
        display: block;
    }
    .form-control.is-invalid {
        border-color: #dc3545;
    }
    .form-control.is-valid {
        border-color: #198754;
    }
    .input-group .form-control.is-invalid,
    .input-group .form-control.is-valid {
        z-index: 3;
    }

    /* Password toggle button */
    .password-toggle {
        border-color: #dee2e6;
        background: #f8f9fa;
    }
    .password-toggle:hover {
        background: #e9ecef;
    }

    /* Submit button disabled state */
    #submitBtn:disabled {
        opacity: 0.5;
        filter: blur(1px);
        cursor: not-allowed;
    }

    /* Password strength bar */
    .password-strength-container {
        display: none;
    }
    .password-strength-container.show {
        display: block;
    }
    .password-strength-bar {
        height: 6px;
        background: #e9ecef;
        border-radius: 3px;
        overflow: hidden;
    }
    .password-strength-fill {
        height: 100%;
        width: 0%;
        transition: width 0.3s ease, background-color 0.3s ease;
        border-radius: 3px;
    }
    .password-strength-text {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.75rem;
    }
    .strength-weak { background-color: #dc3545; }
    .strength-fair { background-color: #fd7e14; }
    .strength-good { background-color: #ffc107; }
    .strength-strong { background-color: #20c997; }
    .strength-excellent { background-color: #198754; }

    /* Password requirements */
    .password-requirements {
        display: none;
        font-size: 0.75rem;
    }
    .password-requirements.show {
        display: block;
    }
    .req-item {
        color: #dc3545;
        padding: 2px 0;
    }
    .req-item.valid {
        color: #198754;
    }
    .req-item.valid i {
        font-weight: bold;
    }

    /* Info icon popover */
    #passwordInfoIcon {
        font-size: 0.875rem;
    }

/* auth/reset_password.php */
    /* Password toggle button */
    .password-toggle {
        border-color: #dee2e6;
        background: #f8f9fa;
    }
    .password-toggle:hover {
        background: #e9ecef;
    }

    /* Invalid feedback */
    .invalid-feedback {
        display: none;
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    .invalid-feedback.show {
        display: block;
    }
    .form-control.is-invalid {
        border-color: #dc3545;
    }
    .form-control.is-valid {
        border-color: #198754;
    }
    .input-group .form-control.is-invalid,
    .input-group .form-control.is-valid {
        z-index: 3;
    }

    /* Submit button disabled state */
    #submitBtn:disabled {
        opacity: 0.5;
        filter: blur(1px);
        cursor: not-allowed;
    }

    /* Password strength bar */
    .password-strength-container {
        display: none;
    }
    .password-strength-container.show {
        display: block;
    }
    .password-strength-bar {
        height: 6px;
        background: #e9ecef;
        border-radius: 3px;
        overflow: hidden;
    }
    .password-strength-fill {
        height: 100%;
        width: 0%;
        transition: width 0.3s ease, background-color 0.3s ease;
        border-radius: 3px;
    }
    .password-strength-text {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.75rem;
    }
    .strength-weak { background-color: #dc3545; }
    .strength-fair { background-color: #fd7e14; }
    .strength-good { background-color: #ffc107; }
    .strength-strong { background-color: #20c997; }
    .strength-excellent { background-color: #198754; }

    /* Password requirements */
    .password-requirements {
        display: none;
        font-size: 0.75rem;
    }
    .password-requirements.show {
        display: block;
    }
    .req-item {
        color: #dc3545;
        padding: 2px 0;
    }
    .req-item.valid {
        color: #198754;
    }
    .req-item.valid i {
        font-weight: bold;
    }

    /* Info icon */
    #passwordInfoIcon {
        font-size: 0.875rem;
    }

/* ===========================================
   Dark Mode Support
   =========================================== */
[data-theme="dark"] body {
    background: #1a1a1a;
}

[data-theme="dark"] body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

[data-theme="dark"] .bg-shape-1,
[data-theme="dark"] .bg-shape-2,
[data-theme="dark"] .bg-shape-3 {
    background: rgba(13, 110, 253, 0.08);
}

[data-theme="dark"] .auth-card {
    background: #2d2d2d;
    border-color: #444;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
                0 2px 4px -1px rgba(0, 0, 0, 0.2),
                0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .auth-card:hover {
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.4),
                0 4px 8px -2px rgba(0, 0, 0, 0.3),
                0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .auth-header {
    background: #0d6efd;
}

[data-theme="dark"] .auth-body {
    background: #2d2d2d;
}

[data-theme="dark"] .form-label {
    color: #e0e0e0;
}

[data-theme="dark"] .form-control {
    background: #1e1e1e;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

[data-theme="dark"] .form-control:hover:not(:focus) {
    border-color: #555;
}

[data-theme="dark"] .input-group-text {
    background: #333;
    border-color: #444;
    color: #adb5bd;
}

[data-theme="dark"] .input-group:focus-within .input-group-text {
    border-color: #0d6efd;
    color: #e0e0e0;
    background: #3a3a3a;
}

[data-theme="dark"] .btn-primary {
    background: #0d6efd;
}

[data-theme="dark"] .btn-primary:hover {
    background: #0b5ed7;
}

[data-theme="dark"] .auth-link {
    color: #e0e0e0;
}

[data-theme="dark"] .auth-link::after {
    background: #0d6efd;
}

[data-theme="dark"] .auth-link:hover {
    color: #fff;
}

[data-theme="dark"] .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

[data-theme="dark"] .form-check-label {
    color: #e0e0e0;
}

[data-theme="dark"] .password-toggle {
    background: #333;
    border-color: #444;
    color: #adb5bd;
}

[data-theme="dark"] .password-toggle:hover {
    background: #444;
}

[data-theme="dark"] .password-strength-bar {
    background: #333;
}

[data-theme="dark"] .password-requirements {
    color: #adb5bd;
}

[data-theme="dark"] .req-item {
    color: #f87171;
}

[data-theme="dark"] .req-item.valid {
    color: #4ade80;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1e1e1e;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #444;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #555;
}
