:root {
    --fi-bg-image: var(--filament-backgrounds-image, url("/assets/backgrounds/image7.png"));
    --fi-blue: #2563eb;
    --fi-blue-500: #3b82f6;
    --fi-blue-700: #1d4ed8;
    --fi-text: #0f172a;
    --fi-muted: #64748b;
    --fi-card: #ffffff;
    --fi-ring: rgba(2, 6, 23, .08);
}

/* alles uit bij login */
.is-login .util,
.is-login .brandbar,
.is-login .primary,
.is-login .footer {
    display: none !important;
}

.fi-simple-layout {
    min-height: 100svh;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0.041)), var(--fi-bg-image) center/cover no-repeat fixed;
    font-family: var(--font-family, 'Inter'), system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.fi-simple-main-ctn {
    display: grid;
    place-items: center;
    width: 100%;
}

.fi-simple-main {
    width: min(440px, calc(100% - 24px));
    background: rgba(255, 255, 255, 0.29);
    /* 25% transparant */
    color: var(--fi-text);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.151);
    padding: 28px 24px;
    border: 1px solid var(--fi-ring);
    /* optioneel, netter effect: */
    backdrop-filter: blur(6px);
}

.fi-simple-section {
    display: grid;
    gap: 18px;
}

.fi-simple-header {
    display: grid;
    place-items: center;
    gap: 10px;
}

.fi-simple-logo {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25));
}

.fi-simple-heading {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0b2a49;
    text-align: center;
}

.fi-simple-alert {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 10px 12px;
}

.fi-form {
    display: grid;
    gap: 12px;
}

.fi-label {
    font-size: 13px;
    color: var(--fi-muted);
    font-weight: 600;
}

.fi-label sup {
    color: #ef4444;
    margin-left: 2px;
}

.fi-input-wrp {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ffffff;
    border-radius: 12px;
    background: #fff;
    transition: .15s border-color, .15s box-shadow;
}

.fi-input {
    width: 80%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--fi-text);
}

.fi-input-wrp:focus-within {
    border-color: var(--fi-blue);
    box-shadow: 0 0 0 3px rgba(2, 2, 2, 0.48);
}

.fi-passrow {
    position: relative;
}

.fi-eye {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0 12px;
    opacity: .6;
}

.fi-eye:hover {
    opacity: 1;
}

.fi-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--fi-muted);
}

.fi-btn {
    margin-top: 2px;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, var(--fi-blue-500), var(--fi-blue-700));
    color: #fff;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(112, 112, 253, 0.25);
    transition: transform .06s ease, filter .2s ease;
}

.fi-btn:hover {
    filter: brightness(1.05);
}

.fi-btn:active {
    transform: translateY(1px);
}

@media (max-width:480px) {
    .fi-simple-main {
        padding: 22px 18px;
    }
}

/* Tekst overal zwart */
:root {
    --fi-text: #000;
    --fi-muted: #000;
    /* labels/kleine teksten ook zwart */
}

/* Voor de zekerheid: headings, labels en inputs expliciet zwart */
.fi-simple-heading {
    color: #000;
}

.fi-label,
.fi-remember {
    color: #000;
}

.fi-input {
    color: #000;
}

.fi-input::placeholder {
    color: #000;
    opacity: .6;
}

/* desnoods iets lichter maken */
/* --- verberg native password reveal in verschillende browsers --- */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}

/* --- password rij strak uitlijnen --- */
.fi-input-wrp {
    gap: 0;
}

/* geen extra ruimte in de wrapper */
.fi-passrow {
    position: relative;
}

.fi-passrow .fi-input {
    padding-right: 44px;
}

/* ruimte voor het oogje */
.fi-passrow .fi-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    border-left: 1px solid #e5e7eb;
    background: transparent;
    color: #000;
    opacity: .8;
    cursor: pointer;
}

.fi-passrow .fi-eye:hover {
    opacity: 1;
}

.fi-passrow .fi-eye svg {
    display: block;
}

/* Kaart: zachte glass look + grotere ronding */
.fi-simple-main {
    background: rgba(255, 255, 255, .35);
    /* 35% transparant */
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    backdrop-filter: blur(6px);
}

/* Inputs: nette ronding en focus-glow */
.fi-input-wrp {
    display: flex;
    align-items: center;
    gap: 0;
    /* geen spleet tussen input en addon */
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    /* addon valt binnen dezelfde ronding */
    transition: .15s border-color, .15s box-shadow;
}

.fi-input-wrp:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

/* Input zelf vult alles */
.fi-input {
    flex: 1 1 auto;
    width: 100%;
    padding: 12px 14px;
}

/* Password addon (oogsymbool rechts, zoals screenshot) */
.fi-passrow .fi-input {
    padding-right: 0;
}

/* ruimte komt van addon */
.fi-passrow .fi-eye {
    border: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-left: 1px solid #e5e7eb;
    cursor: pointer;
    opacity: .85;
}

.fi-passrow .fi-eye:hover {
    opacity: 1;
    background: #eef2f6;
}

.fi-passrow .fi-eye svg {
    width: 22px;
    height: 22px;
}

/* Blauwe knop full-width en zelfde ronding */
.fi-btn {
    display: block;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .25);
}

/* Tekst zwart (zoals je eerder vroeg) */
:root {
    --fi-text: #000;
    --fi-muted: #000;
}

.fi-simple-heading,
.fi-label,
.fi-remember,
.fi-input {
    color: #000;
}

.fi-input::placeholder {
    color: #000;
    opacity: .55;
}

/* verberg eventuele native reveal-knoppen */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}

/* Input en wrapper altijd wit */
.fi-input-wrp {
    background: #ffffff00 !important;
}

.fi-input,
.fi-input:focus {
    background: #ffffff00 !important;
}

/* Autofill (Chrome/Edge/Safari) ook wit maken */
.fi-input:-webkit-autofill,
.fi-input:-webkit-autofill:hover,
.fi-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000;
}

/* Autofill (Firefox) */
.fi-input:-moz-autofill {
    box-shadow: 0 0 0 1000px #fff inset !important;
    -moz-text-fill-color: #000;
}
/* reset – geen rand rondom de pagina */
html,
body {
    height: 100%;
    margin: 0;
    background: #000;
    overflow-x: hidden;
}

/* achtergrond netjes op beide lagen (gradient + foto) */
.fi-simple-layout {
    min-height: 100vh;
    /* of 100svh als je dat wil */
    width: 100%;
    background-color: #000;
    /* fallback i.p.v. wit */

    /* zet de 2 lagen los i.p.v. met shorthand */
    background-image: linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), var(--fi-bg-image);
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-attachment: fixed, fixed;
    /* desnoods uitschakelen op mobiel */
}

/* voorkom ‘fixed’ bugs op mobiel (witte strookjes) */
@media (max-width: 1024px) {
    .fi-simple-layout {
        background-attachment: scroll, scroll;
    }
}
/* ==== Background: de hele viewport vullen, ook mobiel, zonder witte randen ==== */
html,
body {
    height: 100%;
    margin: 0;
    background: #000;
    overflow-x: hidden;
}

.fi-simple-layout {
    /* fallback + dynamic viewport voor mobiele browsers */
    min-height: 100vh;
    min-height: 100dvh;
    /* iOS/Android met inklappende url-balk */
    width: 100%;
    background-color: #000;

    /* 2 lagen expliciet instellen (gradient + foto) */
    background-image:
        linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)),
        var(--fi-bg-image);
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;

    /* vaste achtergrond geeft op mobiel vaak “gaps”; op mobiel zetten we dit uit */
    background-attachment: fixed, fixed;
}

@media (max-width: 1024px) {
    .fi-simple-layout {
        background-attachment: scroll, scroll;
    }
}

/* ==== Mobile-friendly controls ==== */
@media (max-width: 640px) {
    .fi-simple-main {
        width: calc(100% - 20px);
        padding: 18px 14px;
        border-radius: 14px;
        /* iets minder blur/transparant zodat tekst contrastrijk blijft op klein scherm */
        background: rgba(255, 255, 255, .42);
        backdrop-filter: blur(4px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    }

    .fi-simple-header {
        gap: 6px;
    }

    .fi-simple-logo {
        height: 40px;
    }

    .fi-simple-heading {
        font-size: 20px;
        line-height: 1.15;
    }

    /* voorkom iOS zoom bij focus; maak targets ≥44px hoog */
    .fi-input,
    .fi-btn {
        font-size: 16px;
    }

    .fi-input-wrp {
        min-height: 48px;
        border-radius: 12px;
    }

    .fi-input {
        padding: 12px 14px;
    }

    /* password-oogje goed uitlijnen en klikbaar genoeg */
    .fi-passrow .fi-input {
        padding-right: 48px;
    }

    .fi-passrow .fi-eye {
        right: 6px;
        height: 44px;
        width: 44px;
        border-left: 1px solid #e5e7eb;
        opacity: .85;
    }

    .fi-btn {
        padding: 14px 16px;
        border-radius: 12px;
        box-shadow: 0 6px 12px rgba(37, 99, 235, .25);
    }

    .fi-label,
    .fi-remember {
        font-size: 14px;
    }
}

/* net iets strakker op héle kleine devices */
@media (max-width: 360px) {
    .fi-simple-main {
        padding: 16px 12px;
    }

    .fi-passrow .fi-eye {
        width: 40px;
    }
}