:root {
    --blue: #1a6df0;
    --blue-dark: #0e4fc2;
    --blue-soft: #e8f0fe;
    --blue-glow: rgba(26, 109, 240, .15);
    --gold: #f5a623;
    --gold-soft: #fef3dc;
    --bg: #f0f4ff;
    --white: #ffffff;
    --surface: #f8faff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-mid: #334155;
    --muted: #94a3b8;
    --radius: 14px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 16px rgba(26, 109, 240, .06);
    --shadow-md: 0 4px 24px rgba(26, 109, 240, .12), 0 1px 4px rgba(0, 0, 0, .06);
    --shadow-lg: 0 12px 48px rgba(26, 109, 240, .18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* ── LEFT PANEL ── */
.panel-left {
    /* width: 45%; */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 72px;
    overflow: hidden;
    background: var(--white);
}

/* Subtle dot grid */
.panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #c7d8fb 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .5;
}

/* Blue blob top-right */
.panel-left::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 109, 240, .1) 0%, transparent 70%);
    border-radius: 50%;
}

.panel-left>* {
    position: relative;
    z-index: 1;
}

/* Floating card */
.mock-card {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-radius: 20px;
    padding: 26px 30px;
    width: 270px;
    margin-bottom: 44px;
    color: #fff;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .15) inset;
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.mock-card .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .75;
    margin-bottom: 6px;
}

.mock-card .amount {
    font-size: 30px;
    font-weight: 800;
}

.mock-card .sub {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.mock-card .sub-item span {
    font-size: 11px;
    opacity: .7;
    display: block;
}

.mock-card .sub-item strong {
    font-size: 14px;
    font-weight: 700;
}

.mock-card-shine {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .15) 0%, transparent 50%);
    pointer-events: none;
}

/* Badge */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-soft);
    border: 1px solid rgba(245, 166, 35, .3);
    color: #b45309;
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    width: fit-content;
}

.badge-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(1.5)
    }
}

.panel-left h1 {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.panel-left h1 .highlight {
    color: var(--blue);
}

.panel-left h1 .gold {
    color: var(--gold);
}

.panel-left p {
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 40px;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: none;
}

.stat .num {
    font-size: 20px;
    font-weight: 800;
    color: var(--blue);
}

.stat .lbl {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
    font-weight: 500;
}

/* Trusted badges */
.trusted {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.trusted span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.trusted-logos {
    display: flex;
    gap: 8px;
}

.t-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--blue);
    box-shadow: var(--shadow-sm);
}

/* ── RIGHT PANEL ── */
.panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    background: var(--bg);
    position: relative;
}

/* Decorative blob bottom-left */
.panel-right::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 109, 240, .08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: 24px;
    padding: 40px 36px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 48px rgba(26, 109, 240, .10), 0 1px 3px rgba(0, 0, 0, .05);
    position: relative;
}

/* Top accent bar */
.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 36px;
    right: 36px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 100%);
    border-radius: 0 0 4px 4px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 16px var(--blue-glow);
}

.logo-text {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.logo-text span {
    color: var(--gold);
}

.login-box h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.login-box .sub {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 28px;
    font-weight: 500;
}

/* Role tabs */
.role-tabs {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 3px;
}

.role-tab {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
    transition: all .2s;
    user-select: none;
}

.role-tab.active {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 1px 6px rgba(26, 109, 240, .15), 0 1px 2px rgba(0, 0, 0, .06);
}

/* Form */
.form-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-mid);
    margin-bottom: 8px;
    display: block;
}

.input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.input-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    padding: 13px 14px 13px 42px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-wrap input::placeholder {
    color: var(--muted);
}

.input-wrap input:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.input-wrap .toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color .2s;
}

.input-wrap .toggle-pass:hover {
    color: var(--blue);
}

/* Forgot */
.forgot-row {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 22px;
}

.forgot-row a {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

.forgot-row a:hover {
    text-decoration: underline;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px var(--blue-glow);
    position: relative;
    overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
    transform: translateX(-100%);
    transition: transform .5s;
}

.btn-login:hover::after {
    transform: translateX(100%);
}

.btn-login:hover {
    box-shadow: 0 6px 28px rgba(26, 109, 240, .3);
}

.btn-login:active {
    transform: scale(.98);
}

.btn-login.loading {
    pointer-events: none;
    opacity: .75;
}

.spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 10px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Security note */
.security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--blue-soft);
    border: 1px solid rgba(26, 109, 240, .18);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    color: #1e40af;
    font-weight: 500;
}

.security-note i {
    color: var(--blue);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-line {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
}

.contact-line a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.contact-line a:hover {
    text-decoration: underline;
}

/* Footer */
.login-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
    body {
        flex-direction: column;
        overflow: auto;
    }

    .panel-left {
        width: 100%;
        padding: 40px 28px 32px;
    }

    .panel-right {
        padding: 32px 20px 60px;
    }

    .mock-card {
        display: none;
    }
}