* { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(145deg, #f0f4f8 0%, #e8eef5 40%, #f5f0e8 100%);
            position: relative;
            overflow-x: hidden;
        }

        /* Soft decorative blobs */
        body::before,
        body::after {
            content: '';
            position: fixed;
            border-radius: 50%;
            pointer-events: none;
            z-index: 0;
        }
        body::before {
            width: 500px;
            height: 500px;
            top: -150px;
            right: -100px;
            background: radial-gradient(circle, rgba(44, 82, 130, 0.06) 0%, transparent 70%);
        }
        body::after {
            width: 400px;
            height: 400px;
            bottom: -120px;
            left: -80px;
            background: radial-gradient(circle, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
        }

        .login-page {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 900px;
            padding: 24px;
            display: flex;
            align-items: stretch;
            gap: 0;
            flex-shrink: 0;
        }

        /* ── Left: Branding Panel ── */
        .brand-panel {
            flex: 0 0 320px;
            background: linear-gradient(160deg, #1a365d 0%, #2c5282 60%, #1e4a7a 100%);
            border-radius: 20px 0 0 20px;
            padding: 40px 32px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        /* Subtle pattern on brand panel */
        .brand-panel::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20h-4v-4h4v4zm0-20h-4v4h4V0zM0 20h4v-4H0v4z'/%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }

        .brand-panel .logo-box {
            width: 100%;
            background: white;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 14px;
            margin-bottom: 24px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        }

        .brand-panel .logo-box img {
            width: 100%;
            height: auto;
            object-fit: contain;
            border-radius: 8px;
        }

        .brand-panel h1 {
            color: #ffffff;
            font-size: 1.4rem;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 6px;
        }

        .brand-panel .tagline {
            color: rgba(255, 255, 255, 0.55);
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 500;
            margin-bottom: 28px;
        }

        .brand-panel .gold-line {
            width: 40px;
            height: 3px;
            background: linear-gradient(90deg, #c9a227, #fbbf24);
            border-radius: 3px;
            margin-bottom: 28px;
        }

        /* Role list on brand panel */
        .role-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .role-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            color: rgba(255, 255, 255, 0.75);
            font-size: 0.8rem;
            font-weight: 400;
        }

        .role-list li .role-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #c9a227;
            flex-shrink: 0;
        }

        /* ── Right: Form Card ── */
        .form-panel {
            flex: 1;
            background: #ffffff;
            border-radius: 0 20px 20px 0;
            padding: 40px 36px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            box-shadow: 0 20px 50px rgba(26, 54, 93, 0.08);
        }

        .form-panel .form-header {
            margin-bottom: 28px;
        }

        .form-panel .form-header .icon-badge {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #eef2ff, #e0e7ff);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
        }

        .form-panel .form-header .icon-badge i {
            font-size: 1.3rem;
            color: #2c5282;
        }

        .form-panel .form-header h2 {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1e293b;
            margin: 0 0 4px;
        }

        .form-panel .form-header p {
            font-size: 0.82rem;
            color: #94a3b8;
            margin: 0;
        }

        /* Form inputs */
        .form-group {
            margin-bottom: 18px;
        }

        .form-label {
            font-weight: 600;
            color: #374151;
            margin-bottom: 6px;
            display: block;
            font-size: 0.83rem;
        }

        .input-wrap {
            position: relative;
        }

        .input-wrap .input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 1rem;
            z-index: 2;
            transition: color 0.2s;
        }

        .form-control {
            padding: 11px 14px 11px 42px;
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            font-size: 0.9rem;
            height: 48px;
            transition: all 0.25s;
            background: #f8fafc;
            color: #1e293b;
            width: 100%;
        }

        .form-control::placeholder {
            color: #b0bec5;
        }

        .form-control:focus {
            border-color: #6898d0;
            box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.08);
            background: #ffffff;
            outline: none;
        }

        .form-control:focus ~ .input-icon {
            color: #2c5282;
        }

        .password-wrap {
            position: relative;
        }

        .password-wrap .form-control {
            padding-right: 48px;
        }

        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: 4px;
            z-index: 2;
            transition: color 0.2s;
        }

        .password-toggle:hover { color: #2c5282; }
        .password-toggle i { font-size: 1.1rem; }

        /* Submit button */
        .btn-login {
            width: 100%;
            padding: 13px;
            background: linear-gradient(135deg, #1a365d, #2c5282);
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: 700;
            font-size: 0.93rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 14px rgba(26, 54, 93, 0.2);
            margin-top: 6px;
        }

        .btn-login:hover {
            background: linear-gradient(135deg, #2c5282, #3b6fb5);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(26, 54, 93, 0.28);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .btn-login .btn-icon {
            width: 24px;
            height: 24px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
        }

        /* Alerts */
        .alert {
            padding: 12px 16px;
            border-radius: 12px;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.84rem;
            font-weight: 500;
        }

        .alert-danger {
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        .alert-success {
            background: #ecfdf5;
            color: #065f46;
            border: 1px solid #a7f3d0;
        }

        .alert-warning {
            background: #fffbeb;
            color: #92400e;
            border: 1px solid #fde68a;
        }

        .alert i { font-size: 1.1rem; flex-shrink: 0; }

        /* Footer */
        .form-footer {
            margin-top: 24px;
            text-align: center;
            padding-top: 18px;
            border-top: 1px solid #f1f5f9;
        }

        .form-footer p {
            color: #64748b;
            font-size: 0.82rem;
            margin: 0;
        }

        .form-footer a {
            color: #2c5282;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s;
        }

        .form-footer a:hover { color: #c9a227; }

        /* Copyright below */
        .copyright {
            text-align: center;
            padding: 16px 20px 20px;
            color: #94a3b8;
            font-size: 0.75rem;
            width: 100%;
            position: relative;
            z-index: 1;
            flex-shrink: 0;
        }

        /* ── Responsive ── */

        /* Tablet */
        @media (max-width: 768px) {
            .login-page {
                flex-direction: column;
                max-width: 460px;
                gap: 0;
            }

            .brand-panel {
                flex: none;
                border-radius: 20px 20px 0 0;
                padding: 28px 28px 20px;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                gap: 16px;
            }

            .brand-panel .logo-box {
                width: auto;
                max-width: 220px;
                margin-bottom: 0;
                border-radius: 10px;
                padding: 6px 10px;
            }

            .brand-panel .brand-text h1 { font-size: 1.1rem; margin-bottom: 2px; }
            .brand-panel .brand-text .tagline { margin-bottom: 0; font-size: 0.7rem; }
            .brand-panel .gold-line { display: none; }
            .role-list { display: none; }

            .form-panel {
                border-radius: 0 0 20px 20px;
                padding: 28px 24px;
            }

            .form-panel .form-header { margin-bottom: 22px; }
            .form-panel .form-header .icon-badge { display: none; }
            .form-panel .form-header h2 { font-size: 1.1rem; }
        }

        /* Mobile */
        @media (max-width: 480px) {
            body {
                padding: 16px;
                padding-top: env(safe-area-inset-top, 24px);
                padding-bottom: 0;
            }
            html { height: -webkit-fill-available; }

            .login-page {
                padding: 0;
            }

            .brand-panel { padding: 22px 20px 16px; }
            .brand-panel .logo-box { width: auto; max-width: 180px; border-radius: 10px; padding: 5px 8px; }
            .brand-panel .brand-text h1 { font-size: 1rem; }

            .form-panel { padding: 24px 20px; }

            .form-control {
                height: 48px;
                font-size: 16px; /* Prevents iOS zoom */
                border-radius: 10px;
            }

            .btn-login { padding: 14px; height: 50px; border-radius: 10px; }

            .form-footer { margin-top: 20px; padding-top: 16px; }
            .copyright { margin-top: 14px; }
        }

        @media (max-width: 360px) {
            .brand-panel { padding: 18px 16px 14px; }
            .brand-panel .logo-box { max-width: 160px; }
            .brand-panel .brand-text h1 { font-size: 0.95rem; }
            .form-panel { padding: 20px 16px; }
            .form-panel .form-header h2 { font-size: 1rem; }
        }

        @media (max-height: 500px) and (orientation: landscape) {
            body { align-items: flex-start; padding-top: 12px; }
            .login-page { min-height: auto; }
            .brand-panel { padding: 16px 20px; }
            .form-panel { padding: 20px 24px; }
            .form-group { margin-bottom: 12px; }
            .form-panel .form-header { margin-bottom: 16px; }
            .form-footer { margin-top: 14px; padding-top: 12px; }
        }
