:root {
            --primary: #0d6efd;
            --primary-dark: #084298;
            --navy: #092c5c;
            --text: #1e293b;
            --muted: #64748b;
            --border: #dbe3ef;
            --bg: #f5f8fc;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: var(--text);
        }

        /* =========================
           MAIN
        ========================= */

        .login-wrapper {
            min-height: 100vh;
            display: flex;
        }

        /* =========================
           LEFT SIDE
        ========================= */

        .login-brand {
            position: relative;
            width: 52%;
            min-height: 100vh;
            overflow: hidden;
            display: flex;
            align-items: center;
            background:
                linear-gradient(
                    145deg,
                    #062b5b 0%,
                    #0755a1 48%,
                    #0d8bdc 100%
                );
            color: #fff;
        }

        .login-brand::before {
            content: "";
            position: absolute;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            background: rgba(255,255,255,.05);
            top: -250px;
            right: -180px;
        }

        .login-brand::after {
            content: "";
            position: absolute;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: rgba(0,0,0,.08);
            bottom: -260px;
            left: -150px;
        }

        .brand-content {
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 650px;
            margin: auto;
            padding: 60px;
        }

        .government-brand {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 75px;
        }

        .government-logo {
            width: 60px;
            height: 60px;
            border-radius: 14px;
            background: rgba(255,255,255,.95);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 28px;
        }

        .government-brand small {
            display: block;
            font-size: 13px;
            opacity: .8;
            margin-bottom: 2px;
        }

        .government-brand strong {
            font-size: 18px;
            font-weight: 700;
        }

        .app-logo {
            width: 82px;
            height: 82px;
            border-radius: 24px;
            background: rgba(255,255,255,.14);
            border: 1px solid rgba(255,255,255,.25);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 42px;
            margin-bottom: 28px;
        }

        .app-title {
            font-size: clamp(38px, 4vw, 58px);
            font-weight: 800;
            letter-spacing: -2px;
            margin-bottom: 12px;
        }

        .app-subtitle {
            font-size: 20px;
            line-height: 1.6;
            max-width: 570px;
            color: rgba(255,255,255,.86);
        }

        .brand-line {
            width: 75px;
            height: 4px;
            border-radius: 20px;
            background: #5eead4;
            margin: 28px 0;
        }

        .brand-tagline {
            font-size: 17px;
            line-height: 1.7;
            max-width: 470px;
            color: rgba(255,255,255,.78);
        }

        .brand-features {
            display: flex;
            gap: 28px;
            margin-top: 60px;
            flex-wrap: wrap;
        }

        .brand-feature {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: rgba(255,255,255,.88);
        }

        .brand-feature-icon {
            width: 38px;
            height: 38px;
            border-radius: 11px;
            background: rgba(255,255,255,.12);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
        }

        .brand-footer {
            position: absolute;
            z-index: 3;
            bottom: 30px;
            left: 60px;
            font-size: 12px;
            color: rgba(255,255,255,.65);
        }

        /* =========================
           RIGHT SIDE
        ========================= */

        .login-panel {
            width: 48%;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 50px;
            background: #f8fafc;
        }

        .login-container {
            width: 100%;
            max-width: 470px;
        }

        .mobile-brand {
            display: none;
        }

        .login-card {
            background: #fff;
            border: 1px solid #e7edf5;
            border-radius: 24px;
            padding: 42px;
            box-shadow:
                0 20px 60px rgba(15, 23, 42, .08),
                0 3px 10px rgba(15, 23, 42, .03);
        }

        .login-header {
            margin-bottom: 30px;
        }

        .login-header h1 {
            font-size: 27px;
            font-weight: 750;
            color: var(--navy);
            margin-bottom: 9px;
        }

        .login-header p {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.6;
        }

        .form-label {
            font-size: 13px;
            font-weight: 600;
            color: #334155;
            margin-bottom: 8px;
        }

        .input-group-custom {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 5;
            color: #94a3b8;
            font-size: 18px;
        }

        .form-control-custom {
            height: 52px;
            border-radius: 12px !important;
            border: 1px solid var(--border);
            padding-left: 47px;
            padding-right: 45px;
            font-size: 14px;
            color: #1e293b;
            transition: .2s ease;
            box-shadow: none !important;
        }

        .form-control-custom:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(13,110,253,.08) !important;
        }

        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            border: 0;
            background: transparent;
            color: #94a3b8;
            z-index: 5;
            cursor: pointer;
            font-size: 18px;
        }

        .password-toggle:hover {
            color: var(--primary);
        }

        .login-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 15px 0 25px;
        }

        .form-check-label {
            font-size: 13px;
            color: #64748b;
        }

        .form-check-input {
            cursor: pointer;
        }

        .forgot-password {
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            color: var(--primary);
        }

        .forgot-password:hover {
            color: var(--primary-dark);
        }

        .btn-login {
            height: 52px;
            width: 100%;
            border: none;
            border-radius: 12px;
            background: linear-gradient(
                135deg,
                #0d6efd,
                #0758c9
            );
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 8px 20px rgba(13,110,253,.20);
            transition: .2s ease;
        }

        .btn-login:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 25px rgba(13,110,253,.25);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .btn-login.loading {
            pointer-events: none;
            opacity: .85;
        }

        .divider {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 25px 0;
            color: #94a3b8;
            font-size: 12px;
        }

        .divider::before,
        .divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #e2e8f0;
        }

        .btn-sso {
            height: 50px;
            width: 100%;
            border: 1px solid #dbe3ef;
            border-radius: 12px;
            background: #fff;
            color: var(--navy);
            font-size: 13px;
            font-weight: 600;
            transition: .2s ease;
        }

        .btn-sso:hover {
            background: #f8fafc;
            border-color: #b9c8dc;
        }

        .security-info {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 24px;
            padding: 13px 15px;
            border-radius: 11px;
            background: #f0f7ff;
            color: #526b89;
            font-size: 11px;
            line-height: 1.5;
        }

        .security-info i {
            color: var(--primary);
            font-size: 18px;
        }

        .login-footer {
            text-align: center;
            margin-top: 25px;
            color: #94a3b8;
            font-size: 11px;
            line-height: 1.7;
        }

        /* =========================
           ALERT
        ========================= */

        .login-alert {
            display: none;
            border-radius: 12px;
            padding: 13px 15px;
            margin-bottom: 22px;
            font-size: 13px;
            line-height: 1.5;
            border: 1px solid transparent;
        }

        .login-alert.show {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            animation: alertIn .25s ease;
        }

        .login-alert i {
            font-size: 18px;
            flex-shrink: 0;
        }

        .alert-error {
            color: #991b1b;
            background: #fef2f2;
            border-color: #fecaca;
        }

        .alert-warning {
            color: #92400e;
            background: #fffbeb;
            border-color: #fde68a;
        }

        .alert-success {
            color: #166534;
            background: #f0fdf4;
            border-color: #bbf7d0;
        }

        @keyframes alertIn {
            from {
                opacity: 0;
                transform: translateY(-6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* =========================
           RESPONSIVE
        ========================= */

        @media (max-width: 991.98px) {

            .login-brand {
                width: 45%;
            }

            .login-panel {
                width: 55%;
                padding: 30px;
            }

            .brand-content {
                padding: 40px;
            }

            .app-title {
                font-size: 40px;
            }

            .app-subtitle {
                font-size: 16px;
            }

            .brand-features {
                display: block;
                margin-top: 35px;
            }

            .brand-feature {
                margin-bottom: 15px;
            }

            .brand-footer {
                left: 40px;
            }
        }

        @media (max-width: 767.98px) {

            .login-wrapper {
                display: block;
            }

            .login-brand {
                display: none;
            }

            .login-panel {
                width: 100%;
                min-height: 100vh;
                padding: 25px 18px;
                background:
                    linear-gradient(
                        145deg,
                        #eef6ff,
                        #f8fafc
                    );
            }

            .mobile-brand {
                display: block;
                text-align: center;
                margin-bottom: 25px;
            }

            .mobile-brand-icon {
                width: 65px;
                height: 65px;
                margin: auto auto 13px;
                border-radius: 18px;
                background: linear-gradient(
                    135deg,
                    #0d6efd,
                    #0758c9
                );
                color: #fff;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 30px;
                box-shadow: 0 10px 25px rgba(13,110,253,.2);
            }

            .mobile-brand h2 {
                font-size: 23px;
                font-weight: 800;
                color: var(--navy);
                margin-bottom: 3px;
            }

            .mobile-brand p {
                color: var(--muted);
                font-size: 11px;
                margin: 0;
            }

            .login-card {
                padding: 28px 22px;
                border-radius: 20px;
            }

            .login-header h1 {
                font-size: 23px;
            }

            .login-options {
                align-items: flex-start;
                gap: 10px;
            }
        }

        @media (max-width: 400px) {

            .login-card {
                padding: 24px 18px;
            }

            .login-options {
                display: block;
            }

            .forgot-password {
                display: inline-block;
                margin-top: 12px;
            }
        }