*,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: 'Poppins', sans-serif;
            background: var(--navy-900);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background:
                radial-gradient(ellipse 80% 60% at 20% 10%, rgba(244, 150, 16, .12) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 80% 90%, rgba(26, 31, 46, .8) 0%, transparent 60%);
            pointer-events: none;
        }

        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
            background-size: 28px 28px;
            pointer-events: none;
        }

        /* ── Card ── */
        .login-card {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 480px;
            background: var(--bg-surface);
            border-radius: 20px;
            padding: 48px 44px 44px;
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, .06),
                0 24px 64px rgba(0, 0, 0, .55);
            animation: fadeUp .35s ease both;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(24px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── Back link ── */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: var(--text-sm);
            font-weight: 500;
            color: var(--text-muted);
            text-decoration: none;
            margin-bottom: 20px;
            transition: color .2s;
        }

        .back-link:hover {
            color: var(--accent);
        }

        .back-link i {
            font-size: var(--text-md);
        }

        /* ── Brand logo ── */
        .login-brand {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .login-brand img {
            height: 88px;
            width: auto;
            object-fit: contain;
            flex-shrink: 0;
        }

        .login-brand-divider {
            width: 1.5px;
            height: 44px;
            background: var(--border);
            flex-shrink: 0;
        }

        .login-brand-text {
            display: flex;
            flex-direction: column;
        }

        .login-brand-tagline-main {
            font-family: 'Poppins', sans-serif;
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--navy-900);
            letter-spacing: .2px;
            line-height: 1.3;
            margin-left: 16px;
        }

        .login-brand-tagline-sub {
            font-size: var(--text-xs);
            font-weight: 500;
            color: var(--text-muted);
            letter-spacing: .4px;
            text-transform: uppercase;
            line-height: 1.3;
            margin-left: 16px;
        }

        /* ── Heading ── */
        .login-heading {
            font-family: 'Poppins', sans-serif;
            font-size: var(--text-2xl);
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 4px;
            display: flex;
            justify-content: center;
        }

        .login-sub {
            font-size: var(--text-base);
            color: var(--text-muted);
            margin: 0 0 32px;
            display: flex;
            justify-content: center;
            text-align: center;
        }

        /* ── Form elements ── */
        .form-label {
            font-size: var(--text-sm);
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        .form-control {
            border: 1.5px solid var(--border);
            border-radius: 10px;
            padding: 11px 14px;
            font-size: 14.5px;
            color: var(--text-primary);
            transition: border-color .2s, box-shadow .2s;
            background: var(--bg-surface-2);
        }

        .form-control:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(244, 150, 16, .15);
            background: var(--bg-surface);
            outline: none;
        }

        .form-control::placeholder {
            color: var(--text-muted);
        }

        /* ── Submit button ── */
        .btn-signin {
            width: 100%;
            padding: 12px;
            background: var(--accent);
            color: #fff;
            font-family: 'Poppins', sans-serif;
            font-size: var(--text-md);
            font-weight: 600;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: background .2s, transform .1s, box-shadow .2s;
            margin-top: 4px;
            position: relative;
            overflow: hidden;
        }

        .btn-signin:hover:not(:disabled) {
            background: var(--accent-hover);
            box-shadow: 0 6px 20px rgba(244, 150, 16, .35);
        }

        .btn-signin:active:not(:disabled) {
            transform: scale(.98);
        }

        .btn-signin:disabled {
            opacity: .7;
            cursor: not-allowed;
        }

        .btn-signin .spinner-border {
            width: 16px;
            height: 16px;
            border-width: 2px;
            margin-right: 8px;
            vertical-align: -2px;
        }

        /* ── Footer ── */
        .login-footer {
            margin-top: 28px;
            text-align: center;
            font-size: var(--text-sm);
            color: var(--text-muted);
        }

        .login-footer a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
        }

        .login-footer a:hover {
            text-decoration: underline;
        }

        /* ── Divider ── */
        .login-divider {
            border: none;
            border-top: 1.5px solid var(--border-light);
            margin: 24px 0;
        }

        /* ── Success panel ── */
        .success-panel {
            display: none;
        }

        .success-panel .alert {
            border-radius: 12px;
            font-size: var(--text-base);
            line-height: 1.6;
        }

        .btn-back-signin {
            display: inline-block;
            margin-top: 16px;
            padding: 10px 24px;
            background: var(--accent);
            color: #fff;
            font-family: 'Poppins', sans-serif;
            font-size: var(--text-base);
            font-weight: 600;
            border-radius: 10px;
            text-decoration: none;
            transition: background .2s, box-shadow .2s;
        }

        .btn-back-signin:hover {
            background: var(--accent-hover);
            color: #fff;
            box-shadow: 0 6px 20px rgba(244, 150, 16, .35);
        }

        /* SweetAlert2 overrides */
        .swal2-popup {
            border-radius: 16px !important;
            font-family: 'Poppins', sans-serif !important;
        }

        .swal2-confirm {
            background: var(--accent) !important;
            border-radius: 8px !important;
        }

        /* Responsive */
        @media (max-width: 480px) {
            .login-card {
                padding: 36px 24px 32px;
                border-radius: 0;
                max-width: 100%;
                min-height: 100dvh;
            }
        }
