/* ══════════════════════════════════
   TOKENS
══════════════════════════════════ */
:root {
    --b9: #0d2d5e;
    --b8: #1a4480;
    --b7: #1d55a0;
    --b6: #2b6cb0;
    --b5: #3182ce;
    --b4: #4299e1;
    --b3: #63b3ed;
    --b1: #dbeafe;
    --b0: #eff6ff;
    --teal: #0d9488;
    --gold: #e8a020;
    --rose: #e53e3e;
    --green: #16a34a;
    --g8: #1e293b;
    --g7: #334155;
    --g6: #475569;
    --g5: #64748b;
    --g4: #94a3b8;
    --g3: #cbd5e1;
    --g2: #e2e8f0;
    --g1: #f1f5f9;
    --g0: #f8fafc;
    --r: 12px;
    --r-lg: 18px;
    --r-xl: 26px;
    --tr: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-b: 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Poppins", sans-serif;
    background: #e8f1fb;
    color: var(--g8);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* ── CANVAS ── */
#cv {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── GRID ── */
.grid {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(43, 108, 176, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 108, 176, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
}

/* ── PAGE SCROLL WRAPPER ── */
.page {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page::-webkit-scrollbar {
    display: none;
}

/* ══════════════════════════════════
   LOGIN CARD
══════════════════════════════════ */
.card {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 960px;
    min-height: 570px;
    border-radius: var(--r-xl);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 2px 8px rgba(43, 108, 176, 0.06),
        0 12px 40px rgba(43, 108, 176, 0.12),
        0 40px 80px rgba(43, 108, 176, 0.08);
    overflow: hidden;
    animation: cardIn 0.75s cubic-bezier(0.34, 1.15, 0.64, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* footer */
.rp-foot {
    margin-top: auto;
    padding-top: 24px;
    animation: up 0.55s 0.44s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.rp-foot p {
    font-size: 11.5px;
    color: var(--g4);
    text-align: center;
    line-height: 1.65;
}

.rp-foot a {
    color: var(--b6);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--tr);
}

.rp-foot a:hover {
    color: var(--b8);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 780px) {
    html,
    body {
        height: auto;
        overflow: visible;
        overflow-x: hidden;
    }

    .page {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
        align-items: flex-start;
        padding: 16px 10px;
    }

    .card {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
        margin: auto;
    }

    .lp {
        padding: 14px 18px;
        justify-content: center;
        gap: 0;
    }

    .lp-text {
        display: none;
    }

    .lp-stats {
        display: none;
    }

    .lp-hero {
        display: none;
    }

    .lp-brand {
        margin-bottom: 0;
    }

    .rp {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--g2);
    }

    .rp-inner {
        padding: 18px 18px;
    }
}

@media (max-width: 460px) {
    .page {
        padding: 8px 6px;
    }

    .card {
        border-radius: var(--r-lg);
    }

    .lp {
        padding: 10px 14px;
        gap: 0;
    }

    .lp-brand {
        margin-bottom: 0;
    }

    .rp-inner {
        padding: 14px 14px;
    }

    .rp-head {
        margin-bottom: 10px;
    }

    .rp-title {
        font-size: 18px;
    }

    .rp-sub {
        font-size: 11px;
    }

    .rp-foot p {
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .page {
        padding: 6px 4px;
    }

    .lp {
        padding: 8px 12px;
    }

    .rp-inner {
        padding: 12px 10px;
    }

    .rp-head {
        margin-bottom: 8px;
    }

    .rp-title {
        font-size: 16px;
    }

    .rp-eyebrow {
        font-size: 9px;
    }
}

/* ── DEMO HINT ── */
.demo-hint {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    font-size: 11.5px;
    color: var(--g5);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--g2);
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(43, 108, 176, 0.08);
    pointer-events: none;
    white-space: nowrap;
}
