/* =====================================================================
   SACCO design layer for Filament (plain CSS, no build step needed)
   ===================================================================== */
@import url('https://fonts.bunny.net/css?family=sora:600,700&display=swap');

:root {
    --sx-canvas: #EEF2F9;
    --sx-deep: #172554;
    --sx-cobalt: #1E40AF;
    --sx-royal: #2563EB;
    --sx-indigo: #4338CA;
    --sx-action: #6D28D9;
    --sx-action-hi: #7C3AED;
    --sx-ink: #0F172A;
    --sx-muted: #5B6B86;
    --sx-line: #DCE3F0;
    --sx-display: "Sora", ui-sans-serif, system-ui, sans-serif;
    --sx-card-w: 440px;
}

/* =========================== AUTH PAGES =========================== */
/* login, security code, password reset, 2FA setup                     */

body:has(.fi-simple-layout) {
    background:
        radial-gradient(700px 500px at 0% 0%, rgba(37, 99, 235, .14), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(67, 56, 202, .12), transparent 60%),
        var(--sx-canvas);
    background-attachment: fixed;
}

.fi-simple-layout {
    background: transparent !important;
    position: relative;
    min-height: 100dvh;
}

/* faint dot pattern around the edges */
.fi-simple-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(30, 64, 175, .10) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(circle at center, transparent 25%, #000 80%);
    mask-image: radial-gradient(circle at center, transparent 25%, #000 80%);
}

.fi-simple-main-ctn {
    position: relative;
    z-index: 1;
    padding-block: 24px !important;
}

/* ---------- the card ---------- */
.fi-simple-main {
    background: #fff !important;
    border-radius: 22px !important;
    padding: 0 !important;
    margin-block: 0 !important;
    overflow: hidden;
    width: 100%;
    max-width: var(--sx-card-w) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .06),
        0 24px 60px rgba(23, 37, 84, .16) !important;
}

/* inner spacing for everything except the band and the footer */
.fi-simple-page > :not(.sx-band-wrap):not(.sx-foot) {
    padding: 6px 36px 28px;
}

/* the badge replaces Filament's own logo on auth pages */
.fi-simple-header .fi-logo {
    display: none !important;
}

.fi-simple-header-heading {
    font-family: var(--sx-display);
    letter-spacing: -.02em;
    color: var(--sx-ink);
}

.sx-hint {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--sx-muted);
}

/* ---------- blue band ---------- */
.sx-band {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, var(--sx-deep), var(--sx-cobalt) 55%, var(--sx-indigo));
    overflow: hidden;
}

.sx-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* step pills in the band: shown on the login page only */
.sx-steps {
    display: none;
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    gap: 4px;
    white-space: nowrap;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 4px;
    border-radius: 999px;
}

.fi-simple-page:has(.sx-login-page) .sx-steps {
    display: flex;
}

/* inactive pill */
.sx-pill,
.fi-simple-page:has(.sx-code-step) .sx-pill-1 {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    background: transparent;
    color: rgba(255, 255, 255, .85);
}

.sx-pill b,
.fi-simple-page:has(.sx-code-step) .sx-pill-1 b {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* active pill: step 1 by default, step 2 once the password is accepted */
.sx-pill-1,
.fi-simple-page:has(.sx-code-step) .sx-pill-2 {
    background: #fff;
    color: var(--sx-cobalt);
}

.sx-pill-1 b,
.fi-simple-page:has(.sx-code-step) .sx-pill-2 b {
    background: var(--sx-cobalt);
    color: #fff;
}

/* ---------- logo badge on the band edge ---------- */
.sx-badge {
    position: relative;
    z-index: 3;
    width: 64px;
    height: 64px;
    margin: -32px auto 0;
    border-radius: 18px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(23, 37, 84, .18);
}

.sx-badge span {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sx-royal), var(--sx-indigo));
    display: grid;
    place-items: center;
}

.sx-brand-label {
    margin-top: 12px;
    text-align: center;
    font-family: var(--sx-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sx-cobalt);
}

/* ---------- footer strip ---------- */
.sx-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid var(--sx-line);
    padding: 12px 20px;
    font-size: 11.5px;
    color: var(--sx-muted);
    background: #FAFBFE;
}

/* ---------- purple action button ---------- */
.fi-simple-main button[type="submit"].fi-btn {
    background: linear-gradient(135deg, var(--sx-action), var(--sx-action-hi)) !important;
    box-shadow: 0 8px 18px rgba(109, 40, 217, .28);
    border-radius: 11px;
}

/* ---------- floating illustrations beside the card ---------- */
.sx-floats {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.sx-fl {
    position: absolute;
    text-align: center;
    filter: drop-shadow(0 14px 22px rgba(23, 37, 84, .22));
    animation: sx-drift 7s ease-in-out infinite;
}

.sx-fl span {
    display: block;
    margin-top: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sx-muted);
}

/* positions are measured from the card's edges (card is centred) */
.sx-fl-a { left:  calc(50% - var(--sx-card-w) / 2 - 190px); top: calc(50% - 190px); animation-delay: -1s; } /* Growth  */
.sx-fl-b { left:  calc(50% - var(--sx-card-w) / 2 - 172px); top: calc(50% + 80px);  animation-delay: -3s; } /* Secure  */
.sx-fl-c { right: calc(50% - var(--sx-card-w) / 2 - 190px); top: calc(50% - 170px); animation-delay: -2s; } /* Members */
.sx-fl-d { right: calc(50% - var(--sx-card-w) / 2 - 166px); top: calc(50% + 60px);  animation-delay: -4s; } /* Mobile money */

.sx-tagline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2vh;
    text-align: center;
    font-size: 12.5px;
    color: var(--sx-muted);
}

@keyframes sx-drift {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .sx-fl { animation: none; }
}

/* medium screens: illustrations a bit closer */
@media (max-width: 1100px) {
    .sx-fl-a { left:  calc(50% - var(--sx-card-w) / 2 - 150px); }
    .sx-fl-b { left:  calc(50% - var(--sx-card-w) / 2 - 136px); }
    .sx-fl-c { right: calc(50% - var(--sx-card-w) / 2 - 150px); }
    .sx-fl-d { right: calc(50% - var(--sx-card-w) / 2 - 130px); }
}

/* ---------- keep the card on one screen ---------- */

/* typical laptops (about 650 to 820px of visible height) */
@media (max-height: 820px) {
    .fi-simple-main-ctn { padding-block: 12px !important; }
    .sx-band { height: 100px; }
    .sx-steps { top: 22px; }
    .sx-badge { width: 54px; height: 54px; margin-top: -27px; border-radius: 15px; }
    .sx-badge span { width: 40px; height: 40px; border-radius: 12px; }
    .sx-brand-label { margin-top: 8px; font-size: 13px; }
    .fi-simple-page > :not(.sx-band-wrap):not(.sx-foot) { padding-top: 0; padding-bottom: 18px; }
    .fi-simple-header-heading { font-size: 1.4rem !important; }
    .sx-foot { padding: 9px 16px; }
    .sx-tagline { display: none; }
}

/* short screens */
@media (max-height: 680px) {
    .sx-band { height: 70px; }
    .sx-steps { top: 12px; }
    .sx-brand-label { display: none; }
    .sx-hint { display: none; }
    .sx-fl { display: none; }
}

/* phones */
@media (max-width: 700px) {
    .sx-fl { display: none; }
    .sx-tagline { display: none; }
}

@media (max-width: 480px) {
    .fi-simple-page > :not(.sx-band-wrap):not(.sx-foot) {
        padding: 6px 20px 24px;
    }
}

/* =========================== SHARED =========================== */

/* brand mark used in the dashboard top bar */
.sx-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sx-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sx-royal), var(--sx-indigo));
    display: grid;
    place-items: center;
}

.sx-brand-name {
    font-family: var(--sx-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.01em;
    color: var(--sx-deep);
}