/* =====================================================================
   SPP SEKOLAH - DESIGN SYSTEM (Mobile-First)
   ===================================================================== */
:root {
    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-50: #eef2ff;
    --violet: #7c3aed;
    --teal: #0d9488;
    --teal-50: #ecfdf5;
    --rose: #e11d48;
    --rose-50: #fff1f2;
    --amber: #d97706;
    --amber-50: #fffbeb;
    --sky: #0284c7;
    --sky-50: #f0f9ff;

    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f4f6fb;
    --card: #ffffff;

    --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --grad-teal: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
    --grad-rose: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
    --grad-amber: linear-gradient(135deg, #d97706 0%, #facc15 100%);
    --grad-sky: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow: 0 4px 24px -6px rgba(15, 23, 42, .10);
    --shadow-lg: 0 20px 40px -12px rgba(79, 70, 229, .35);

    --sidebar-w: 270px;
    --topbar-h: 68px;
    --bottom-h: 68px;

    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--ink-2);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--bs-body-font-family);
    background: var(--bg);
    color: var(--ink-2);
    font-size: .925rem;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h5 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--primary); text-decoration: none; }

/* ---------------- Layout ---------------- */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content {
    flex: 1;
    padding: 1rem;
    padding-bottom: calc(var(--bottom-h) + 1.5rem + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .content { padding: 1.5rem; padding-bottom: calc(var(--bottom-h) + 2rem); } }
@media (min-width: 992px) {
    .main { margin-left: var(--sidebar-w); }
    .content { padding: 1.75rem 2rem 2rem; }
}

/* ---------------- Sidebar ---------------- */
.sidebar {
    position: fixed; inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: #0f172a;
    background-image: radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .28), transparent 45%),
                      radial-gradient(circle at 100% 100%, rgba(79, 70, 229, .22), transparent 40%);
    color: #cbd5e1;
    display: flex; flex-direction: column;
    z-index: 1045;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.sidebar.show { transform: translateX(0); box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }
@media (min-width: 992px) { .sidebar { transform: none; } }

.sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(3px); z-index: 1040;
    opacity: 0; visibility: hidden; transition: .3s;
}
.sidebar-backdrop.show { opacity: 1; visibility: visible; }

.sidebar-brand {
    display: flex; align-items: center; gap: .75rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand-logo {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 14px; background: var(--grad-primary);
    display: grid; place-items: center; color: #fff; font-size: 1.35rem;
    box-shadow: 0 8px 20px -6px rgba(124, 58, 237, .7); overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.brand-text { min-width: 0; line-height: 1.2; }
.brand-text strong { display: block; color: #fff; font-size: 1.02rem; }
.brand-text small { display: block; color: #94a3b8; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.btn-close-sidebar { color: #94a3b8 !important; background: rgba(255,255,255,.06) !important; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem .85rem; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.nav-header {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
    color: #64748b; font-weight: 700; padding: 1rem .75rem .4rem;
}
.sidebar .nav-link {
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem .85rem; margin-bottom: 2px;
    border-radius: 12px; color: #cbd5e1; font-weight: 500; font-size: .9rem;
    transition: background .2s, color .2s, transform .15s;
}
.sidebar .nav-link > i:first-child { font-size: 1.1rem; width: 22px; text-align: center; opacity: .85; }
.sidebar .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; transform: translateX(2px); }
.sidebar .nav-link.active {
    background: var(--grad-primary); color: #fff;
    box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .8);
}
.sidebar .nav-link.active-parent { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-caret { font-size: .75rem; transition: transform .25s; }
.nav-link:not(.collapsed) .nav-caret { transform: rotate(180deg); }
.nav-sub { padding: .25rem 0 .35rem 1.35rem; border-left: 1px dashed #334155; margin-left: 1.4rem; }
.nav-sub .nav-link { padding: .55rem .75rem; font-size: .86rem; }
.nav-sub .dot { width: 6px; height: 6px; border-radius: 50%; background: #475569; flex-shrink: 0; }
.nav-sub .nav-link.active { background: rgba(124, 58, 237, .22); box-shadow: none; }
.nav-sub .nav-link.active .dot { background: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .25); }
.sidebar-footer { padding: .75rem .85rem 1rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.text-danger-soft { color: #fda4af !important; }

/* ---------------- Topbar ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 1030;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: .75rem;
    padding: 0 1rem;
    background: rgba(244, 246, 251, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, .7);
}
@media (min-width: 992px) { .topbar { padding: 0 2rem; } }
.topbar-title { min-width: 0; }
.topbar-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.btn-icon {
    width: 42px; height: 42px; border: 0; border-radius: 12px;
    display: inline-grid; place-items: center;
    background: #fff; color: var(--ink); font-size: 1.3rem;
    box-shadow: var(--shadow-sm); transition: .2s;
}
.btn-icon:active { transform: scale(.94); }
.badge-tp {
    align-items: center; gap: .4rem;
    background: var(--primary-50); color: var(--primary);
    font-weight: 600; font-size: .78rem;
    padding: .45rem .8rem; border-radius: 999px;
}
.user-chip {
    display: flex; align-items: center; gap: .6rem;
    background: #fff; border: 0; border-radius: 999px;
    padding: .3rem .3rem; box-shadow: var(--shadow-sm); color: var(--ink);
}
@media (min-width: 768px) { .user-chip { padding: .3rem .9rem .3rem .3rem; } }
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--grad-primary); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0;
}
.dropdown-item { padding: .6rem .85rem; font-weight: 500; }

/* ---------------- Bottom Nav (Mobile) ---------------- */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: flex; align-items: stretch; justify-content: space-around;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px -12px rgba(15, 23, 42, .15);
}
.bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--muted); font-size: .7rem; font-weight: 600;
    background: none; border: 0; position: relative; transition: color .2s;
}
.bn-icon { font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.bn-item.active { color: var(--primary); }
.bn-item.active .bn-icon { transform: translateY(-2px); }
.bn-item.active::before {
    content: ''; position: absolute; top: 0; width: 28px; height: 3px;
    border-radius: 0 0 4px 4px; background: var(--grad-primary);
}
.bn-item:active .bn-icon { transform: scale(.88); }
.bn-fab .bn-icon {
    width: 54px; height: 54px; margin-top: -26px; border-radius: 18px;
    display: grid; place-items: center; font-size: 1.45rem; color: #fff;
    background: var(--grad-primary); box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg);
}
.bn-fab.active::before { display: none; }
.bn-fab.active .bn-icon { transform: translateY(-2px) rotate(-6deg); }

/* ---------------- Cards ---------------- */
.card-modern {
    background: var(--card); border: 1px solid rgba(226, 232, 240, .7);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-modern .card-header-modern {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
    padding: 1rem 1.15rem; border-bottom: 1px solid var(--line);
}
.card-modern .card-header-modern h2,
.card-modern .card-header-modern h3 { font-size: 1rem; margin: 0; }
.card-modern .card-body-modern { padding: 1.15rem; }
@media (min-width: 768px) {
    .card-modern .card-header-modern { padding: 1.15rem 1.4rem; }
    .card-modern .card-body-modern { padding: 1.4rem; }
}

/* Hero / welcome */
.hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius); padding: 1.35rem;
    background: var(--grad-primary); color: #fff;
    box-shadow: var(--shadow-lg);
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.hero::before { width: 220px; height: 220px; right: -60px; top: -80px; }
.hero::after { width: 140px; height: 140px; right: 90px; bottom: -70px; background: rgba(255, 255, 255, .07); }
.hero > * { position: relative; z-index: 1; }
.hero h2 { color: #fff; font-size: 1.25rem; margin-bottom: .25rem; }
.hero p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .88rem; }
.hero-saldo-label { font-size: .78rem; color: rgba(255, 255, 255, .75); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hero-saldo { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
@media (min-width: 768px) { .hero { padding: 1.75rem 2rem; } .hero h2 { font-size: 1.5rem; } .hero-saldo { font-size: 2.1rem; } }

.btn-glass {
    background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px); font-weight: 600;
}
.btn-glass:hover, .btn-glass:focus { background: rgba(255, 255, 255, .26); color: #fff; }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; border: 0; }
.btn-white:hover { background: #f8fafc; color: var(--primary-600); }

/* Stat cards */
.stat-card {
    position: relative; overflow: hidden; height: 100%;
    background: var(--card); border-radius: var(--radius);
    border: 1px solid rgba(226, 232, 240, .7);
    padding: 1rem; box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-icon {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center; font-size: 1.2rem; color: #fff; margin-bottom: .75rem;
}
.stat-label { font-size: .76rem; color: var(--muted); font-weight: 600; margin-bottom: .15rem; }
.stat-value { font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; word-break: break-word; }
.stat-sub { font-size: .72rem; color: var(--muted); margin-top: .3rem; }
.stat-card::after {
    content: ''; position: absolute; right: -24px; top: -24px;
    width: 90px; height: 90px; border-radius: 50%; opacity: .08;
}
.stat-teal .stat-icon, .stat-teal::after { background: var(--grad-teal); }
.stat-rose .stat-icon, .stat-rose::after { background: var(--grad-rose); }
.stat-amber .stat-icon, .stat-amber::after { background: var(--grad-amber); }
.stat-sky .stat-icon, .stat-sky::after { background: var(--grad-sky); }
.stat-primary .stat-icon, .stat-primary::after { background: var(--grad-primary); }
@media (min-width: 768px) {
    .stat-card { padding: 1.25rem; }
    .stat-icon { width: 48px; height: 48px; font-size: 1.35rem; }
    .stat-value { font-size: 1.35rem; }
    .stat-label { font-size: .82rem; }
}

/* Quick actions */
.quick-action {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
    text-align: center; padding: .9rem .4rem; height: 100%;
    background: var(--card); border-radius: var(--radius-sm);
    border: 1px solid rgba(226, 232, 240, .7); box-shadow: var(--shadow-sm);
    color: var(--ink); font-size: .76rem; font-weight: 600; transition: .2s;
}
.quick-action i {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem;
}
.quick-action:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.quick-action:active { transform: scale(.96); }
.qa-primary i { background: var(--primary-50); color: var(--primary); }
.qa-teal i { background: var(--teal-50); color: var(--teal); }
.qa-rose i { background: var(--rose-50); color: var(--rose); }
.qa-amber i { background: var(--amber-50); color: var(--amber); }
.qa-sky i { background: var(--sky-50); color: var(--sky); }

/* List item (recent transactions) */
.list-modern { list-style: none; margin: 0; padding: 0; }
.list-modern li {
    display: flex; align-items: center; gap: .85rem;
    padding: .85rem 1.15rem; border-bottom: 1px solid var(--line); transition: background .15s;
}
.list-modern li:last-child { border-bottom: 0; }
.list-modern li:hover { background: #f8fafc; }
.list-icon {
    width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.1rem;
}
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: .76rem; color: var(--muted); }
.list-amount { font-weight: 700; white-space: nowrap; text-align: right; }

/* Empty state */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.6rem; opacity: .35; display: block; margin-bottom: .5rem; }

/* ---------------- Buttons (touch-friendly) ---------------- */
.btn { border-radius: 12px; font-weight: 600; min-height: 44px; padding: .55rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-sm { min-height: 36px; padding: .35rem .8rem; border-radius: 10px; font-size: .82rem; }
.btn-lg { min-height: 52px; border-radius: 14px; }
.btn-primary { background: var(--grad-primary); border: 0; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .7); }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #4338ca, #6d28d9); }
.btn-success { background: var(--grad-teal); border: 0; }
.btn-danger { background: var(--grad-rose); border: 0; }
.btn:active { transform: scale(.97); }

/* ---------------- Forms ---------------- */
.form-label { font-weight: 600; color: var(--ink); font-size: .85rem; margin-bottom: .4rem; }
.form-control, .form-select {
    min-height: 46px; border-radius: 12px; border-color: var(--line);
    font-size: .95rem; padding: .55rem .9rem; background-color: #fff;
}
.form-control:focus, .form-select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.input-group-text { border-radius: 12px; border-color: var(--line); background: #f8fafc; }

/* ---------------- Tables -> Cards on mobile ---------------- */
.table-modern { margin: 0; }
.table-modern thead th {
    background: #f8fafc; color: var(--muted); font-size: .74rem; text-transform: uppercase;
    letter-spacing: .05em; font-weight: 700; border-bottom: 1px solid var(--line);
    padding: .85rem 1rem; white-space: nowrap;
}
.table-modern tbody td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--line); }
.table-modern tbody tr:hover { background: #fafbff; }

/* Tambahkan class .table-cards + atribut data-label pada <td> */
@media (max-width: 767.98px) {
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards tbody tr {
        background: #fff; border: 1px solid var(--line); border-radius: 16px;
        margin: 0 0 .75rem; padding: .5rem .25rem; box-shadow: var(--shadow-sm);
    }
    .table-cards tbody td {
        display: flex; justify-content: space-between; align-items: center; gap: 1rem;
        border: 0; padding: .45rem .85rem; text-align: right;
    }
    .table-cards tbody td::before {
        content: attr(data-label); font-weight: 600; color: var(--muted);
        font-size: .78rem; text-align: left; flex-shrink: 0;
    }
    .table-cards tbody td.td-actions { justify-content: flex-end; border-top: 1px dashed var(--line); margin-top: .35rem; padding-top: .65rem; }
    .table-cards tbody td.td-actions::before { display: none; }
    .table-cards tbody td.td-actions .btn { flex: 1; }
    .card-modern .table-cards { padding: .75rem; }
}

/* Badges */
.badge-soft { padding: .38rem .7rem; border-radius: 999px; font-weight: 600; font-size: .72rem; }
.badge-soft-success { background: var(--teal-50); color: var(--teal); }
.badge-soft-danger { background: var(--rose-50); color: var(--rose); }
.badge-soft-warning { background: var(--amber-50); color: var(--amber); }
.badge-soft-primary { background: var(--primary-50); color: var(--primary); }
.badge-soft-info { background: var(--sky-50); color: var(--sky); }
.text-teal { color: var(--teal) !important; }
.text-rose { color: var(--rose) !important; }

.app-footer { text-align: center; font-size: .76rem; color: var(--muted); padding: 2rem 0 0; }

/* ---------------- Animations ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .5s cubic-bezier(.2, .8, .2, 1) both; }
.delay-1 { animation-delay: .06s; } .delay-2 { animation-delay: .12s; }
.delay-3 { animation-delay: .18s; } .delay-4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* SweetAlert tweak */
.swal2-popup { font-family: var(--bs-body-font-family) !important; border-radius: 20px !important; }
.swal2-toast { border-radius: 14px !important; }

/* =====================================================================
   LOGIN PAGE
   ===================================================================== */
.login-page { min-height: 100vh; display: flex; background: #fff; }
.login-visual {
    display: none; flex: 1.1; position: relative; overflow: hidden;
    background: var(--grad-primary); color: #fff; padding: 3rem;
}
.login-visual .blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.login-visual .b1 { width: 420px; height: 420px; background: rgba(255,255,255,.08); top: -120px; right: -120px; }
.login-visual .b2 { width: 260px; height: 260px; background: rgba(255,255,255,.06); bottom: -80px; left: -60px; }
.login-visual .b3 { width: 140px; height: 140px; background: rgba(16,185,129,.35); bottom: 22%; right: 18%; filter: blur(40px); }
.login-visual-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.login-visual h2 { color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.login-feature { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.login-feature i {
    width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center;
    background: rgba(255,255,255,.15); font-size: 1.15rem;
}
.login-feature strong { display: block; color: #fff; }
.login-feature span { font-size: .85rem; color: rgba(255,255,255,.75); }
.mock-card {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px; padding: 1.25rem 1.4rem; backdrop-filter: blur(10px); max-width: 340px;
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.login-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem; position: relative; }
.login-form-wrap::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 230px;
    background: var(--grad-primary); border-radius: 0 0 36px 36px; z-index: 0;
}
.login-box { width: 100%; max-width: 410px; position: relative; z-index: 1; }
.login-brand { text-align: center; color: #fff; margin-bottom: 1.25rem; }
.login-brand .brand-logo { width: 68px; height: 68px; border-radius: 20px; margin: 0 auto .75rem; font-size: 2rem; background: rgba(255,255,255,.18); box-shadow: none; border: 1px solid rgba(255,255,255,.3); }
.login-brand h1 { color: #fff; font-size: 1.3rem; margin: 0; }
.login-brand p { color: rgba(255,255,255,.8); font-size: .85rem; margin: .2rem 0 0; }
.login-card { background: #fff; border-radius: 24px; padding: 1.75rem 1.4rem; box-shadow: 0 25px 50px -15px rgba(15,23,42,.25); }
.login-card .form-control { min-height: 52px; padding-left: 2.9rem; background: #f8fafc; border-color: #eef2f7; }
.login-card .form-control:focus { background: #fff; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; z-index: 3; }
.btn-toggle-pass { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 40px; height: 40px; z-index: 3; }
.role-pills { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.role-pills span { font-size: .7rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: #f1f5f9; color: var(--muted); }

@media (min-width: 992px) {
    .login-visual { display: block; }
    .login-form-wrap { background: #fff; }
    .login-form-wrap::before { display: none; }
    .login-brand { color: var(--ink); text-align: left; }
    .login-brand .brand-logo { margin: 0 0 1rem; background: var(--grad-primary); border: 0; color: #fff; }
    .login-brand h1 { color: var(--ink); font-size: 1.65rem; }
    .login-brand p { color: var(--muted); }
    .login-card { box-shadow: none; padding: 0; }
}
