/* Extracted from app/Views/auth/index.php */
/* ===== GLOBAL ===== */
        body {
            font-family: 'Inter', sans-serif;
            background-image: url('/assets/background-login.jpg?v=20260830-2');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            padding: 20px;
            background-color: #1e293b; /* fallback */
        }

        /* ===== LOGIN CARD ===== */
        .login-card {
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 1.5rem;
            padding: 2.5rem 2rem;
            width: 100%;
            max-width: 420px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transition: transform 0.2s ease;
        }
        .login-card:hover {
            transform: scale(1.005);
        }

        /* ===== LOGO ===== */
        .logo-wrapper {
            text-align: center;
            margin-bottom: 1.8rem;
        }
        .logo-wrapper img {
            max-width: 80px;
            height: auto;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
        }
        .logo-wrapper h2 {
            color: #fff;
            font-weight: 700;
            font-size: 1.4rem;
            margin-top: 0.5rem;
            letter-spacing: -0.5px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        /* ===== FORM CONTROLS ===== */
        .form-control {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: #1e293b;
            font-weight: 500;
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
        }
        .form-control:focus {
            background: #fff;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
        }
        .form-control::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

        .form-label {
            color: rgba(255,255,255,0.85);
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
        }

        /* ===== PASSWORD TOGGLE ===== */
        .password-wrapper {
            position: relative;
        }
        .password-wrapper .form-control {
            padding-right: 3rem;
        }
        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #64748b;
            cursor: pointer;
            font-size: 1.1rem;
            padding: 0;
            line-height: 1;
            z-index: 5;
        }
        .password-toggle:hover {
            color: #1e293b;
        }

        /* ===== BUTTONS ===== */
        .btn-primary-custom {
            background: #2563eb;
            border: none;
            font-weight: 700;
            padding: 0.75rem;
            border-radius: 0.75rem;
            transition: all 0.2s;
        }
        .btn-primary-custom:hover {
            background: #1d4ed8;
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
        }

        /* ===== REMEMBER ME ===== */
        .form-check-label {
            color: rgba(255,255,255,0.8);
            font-size: 0.9rem;
            font-weight: 500;
        }
        .form-check-input:checked {
            background-color: #2563eb;
            border-color: #2563eb;
        }

        /* ===== ALERTS ===== */
        .alert-custom {
            border-radius: 0.75rem;
            font-weight: 500;
            border: none;
            background: rgba(239, 68, 68, 0.85);
            color: #fff;
            backdrop-filter: blur(4px);
        }
        .alert-success-custom {
            background: rgba(34, 197, 94, 0.85);
            color: #fff;
        }

        /* ===== FORGOT PASSWORD LINK ===== */
        .forgot-link a {
            color: #93c5fd;
            font-size: 0.875rem;
            font-weight: 500;
            text-decoration: none;
            transition: color 0.2s;
        }
        .forgot-link a:hover {
            color: #bfdbfe;
            text-decoration: underline;
        }

        /* ===== FOOTER LINKS ===== */
        .footer-links {
            margin-top: 1.5rem;
            text-align: center;
            font-size: 0.8rem;
        }
        .footer-links a {
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            margin: 0 8px;
            transition: color 0.2s;
        }
        .footer-links a:hover {
            color: #93c5fd;
            text-decoration: underline;
        }
        .footer-links .separator {
            color: rgba(255,255,255,0.2);
        }

        /* ===== MODAL (re-using Bootstrap but with custom overlay) ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            justify-content: center;
            align-items: center;
            z-index: 10000;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .modal-container {
            background: #ffffff;
            border-radius: 1.5rem;
            max-width: 680px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.3);
            animation: modalFadeIn 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: scale(0.98) translateY(-10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        /* Modal Header – uses gradient */
        .modal-header-custom {
            position: sticky;
            top: 0;
            padding: 20px 28px;
            border-radius: 1.5rem 1.5rem 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 2;
            color: #fff;
        }
        .modal-header-custom.warning {
            background: linear-gradient(135deg, #dc3545, #b02a37);
        }
        .modal-header-custom.privacy {
            background: linear-gradient(135deg, #2c7fb8, #1d5a8a);
        }
        .modal-header-custom.success {
            background: linear-gradient(135deg, #198754, #157347);
        }
        .success-checkmark {
            width: 76px;
            height: 76px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 18px;
            background: rgba(25, 135, 84, 0.12);
            color: #198754;
            font-size: 2.5rem;
        }
        .modal-header-custom h2 {
            margin: 0;
            font-size: 1.3rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .modal-header-custom h2 i {
            font-size: 1.5rem;
        }

        .modal-close {
            background: rgba(255,255,255,0.15);
            border: none;
            font-size: 24px;
            font-weight: 600;
            color: #fff;
            cursor: pointer;
            line-height: 1;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }
        .modal-close:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }

        .modal-body-custom {
            padding: 28px 32px;
            background: #fff;
            color: #1e293b;
            line-height: 1.6;
        }
        .modal-body-custom h3 {
            font-size: 1.1rem;
            font-weight: 650;
            margin: 1.5rem 0 0.75rem 0;
            color: #1e4663;
            border-left: 4px solid #2c7fb8;
            padding-left: 12px;
        }
        .modal-body-custom h3:first-of-type {
            margin-top: 0;
        }
        .modal-body-custom p {
            margin-bottom: 1rem;
            color: #2d3e50;
        }
        .modal-body-custom ul {
            margin-bottom: 1rem;
            padding-left: 1.6rem;
        }
        .modal-body-custom li {
            margin-bottom: 0.5rem;
            color: #2d3e50;
        }

        .warning-box {
            background: #fff3e0;
            border-left: 5px solid #f58220;
            padding: 14px 18px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 1.8rem;
        }
        .warning-box i {
            font-size: 1.8rem;
            color: #f58220;
        }
        .warning-box strong {
            color: #c95a0f;
        }

        .info-box {
            background: #e8f4fd;
            border-left: 5px solid #17a2b8;
            padding: 14px 18px;
            border-radius: 14px;
            margin: 1.2rem 0;
            display: flex;
            gap: 14px;
            align-items: flex-start;
        }
        .info-box i {
            font-size: 1.5rem;
            color: #17a2b8;
        }

        .modal-footer-custom {
            padding: 18px 28px 24px;
            background: #f9fbfd;
            border-top: 1px solid #e9edf2;
            border-radius: 0 0 1.5rem 1.5rem;
            display: flex;
            justify-content: flex-end;
        }

        .btn-modal {
            padding: 10px 28px;
            font-size: 0.9rem;
            font-weight: 600;
            border: none;
            border-radius: 40px;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-acknowledge {
            background: linear-gradient(135deg, #f58220, #e06e17);
            color: #fff;
        }
        .btn-acknowledge:hover {
            background: #e06e17;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
        }
        .btn-understand {
            background: linear-gradient(135deg, #2c7fb8, #1d5a8a);
            color: #fff;
        }
        .btn-understand:hover {
            background: #1d5a8a;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(44, 127, 184, 0.3);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 480px) {
            .login-card {
                padding: 1.8rem 1.2rem;
            }
            .logo-wrapper h2 {
                font-size: 1.1rem;
            }
            .modal-container {
                max-width: 96%;
            }
            .modal-header-custom {
                padding: 16px 20px;
            }
            .modal-header-custom h2 {
                font-size: 1.1rem;
            }
            .modal-body-custom {
                padding: 20px 22px;
            }
            .btn-modal {
                padding: 8px 20px;
                font-size: 0.85rem;
            }
        }
