/* ============================================================
   OmniDoc · auth-schermen (login + 2FA)
   Concept F · "Midnight Teal" — donkere teal-gradient met
   drijvende auras, groot omnidoc-merk links, glas-formulier rechts.
   Gedeeld door Login.cshtml, TwoFactorAuth.cshtml en
   InitTwoFactoredAuthentication.cshtml.
   ============================================================ */

:root {
    /* Midnight Teal (F_THEMES.teal) */
    --bg-top: #0c3a40;
    --bg-mid: #07262b;
    --bg-bot: #04161b;
    --accent: #15A89B;
    --accent-hover: #1FC3B4;
    --accent-tint: rgba(21, 168, 155, 0.22);
    --aura-1: rgba(34, 196, 182, 0.50);
    --aura-2: rgba(60, 210, 200, 0.36);
    --aura-3: rgba(120, 230, 225, 0.24);
    /* tekst / lijnen op donker */
    --ondark: #EAE7DF;
    --ondark-mute: rgba(234, 231, 223, 0.62);
    --ondark-line: rgba(234, 231, 223, 0.16);
    /* glas-kaart */
    --glass-bg: rgba(255, 255, 255, 0.055);
    --field-bg: rgba(255, 255, 255, 0.04);
    --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--sans);
    color: var(--ondark);
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(150deg, var(--bg-top) 0%, var(--bg-mid) 54%, var(--bg-bot) 100%);
    -webkit-font-smoothing: antialiased;
}

/* ── split-frame ──────────────────────────────────────────── */
.login-split {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

/* ── achtergrondlaag: auras + ringen + grain ─────────────── */
.omd-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* zachte concentrische ringen rechtsboven */
.omd-bg::before {
    content: "";
    position: absolute;
    right: -260px;
    top: -260px;
    width: 820px;
    height: 820px;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='820' height='820' fill='none'%3E%3Cg stroke='rgba(234,231,223,0.08)' stroke-width='1'%3E%3Ccircle cx='410' cy='410' r='400'/%3E%3Ccircle cx='410' cy='410' r='326'/%3E%3Ccircle cx='410' cy='410' r='252'/%3E%3Ccircle cx='410' cy='410' r='178'/%3E%3Ccircle cx='410' cy='410' r='104'/%3E%3C/g%3E%3C/svg%3E");
}

/* film-grain overlay */
.omd-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.omd-aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    mix-blend-mode: screen;
    will-change: transform, opacity;
    pointer-events: none;
}

.omd-aura-1 {
    width: 720px;
    height: 720px;
    left: -160px;
    top: -200px;
    background: radial-gradient(circle, var(--aura-1) 0%, rgba(0, 0, 0, 0) 68%);
    animation: omd-drift-1 26s ease-in-out infinite;
}

.omd-aura-2 {
    width: 600px;
    height: 600px;
    right: -120px;
    bottom: -180px;
    background: radial-gradient(circle, var(--aura-2) 0%, rgba(0, 0, 0, 0) 70%);
    animation: omd-drift-2 32s ease-in-out infinite;
}

.omd-aura-3 {
    width: 520px;
    height: 520px;
    left: 38%;
    top: 30%;
    background: radial-gradient(circle, var(--aura-3) 0%, rgba(0, 0, 0, 0) 72%);
    animation: omd-drift-3 22s ease-in-out infinite;
}

@keyframes omd-drift-1 {
    0%   { transform: translate(0, 0) scale(1);          opacity: .8; }
    50%  { transform: translate(220px, 160px) scale(1.18); opacity: 1; }
    100% { transform: translate(0, 0) scale(1);          opacity: .8; }
}

@keyframes omd-drift-2 {
    0%   { transform: translate(0, 0) scale(1.05);        opacity: .7; }
    50%  { transform: translate(-200px, -120px) scale(1.3); opacity: 1; }
    100% { transform: translate(0, 0) scale(1.05);        opacity: .7; }
}

@keyframes omd-drift-3 {
    0%   { transform: translate(-60px, 40px) scale(1);    opacity: .5; }
    50%  { transform: translate(140px, -90px) scale(1.22); opacity: .85; }
    100% { transform: translate(-60px, 40px) scale(1);    opacity: .5; }
}

/* ── merk-kolom (links) ──────────────────────────────────── */
.login-brand {
    /* géén position:relative — dan valt de absolute .login-version terug op
       .login-split (full viewport) i.p.v. dit verticaal-gecentreerde blok.
       z-index werkt op flex-items ook zonder position. */
    z-index: 2;
    flex: 1 1 auto;
    padding: 54px 0 0 84px;
    max-width: 720px;
}

/* merk-lockup als grid: kolom 1 = logo, kolom 2 = tekst.
   Tagline op rij 2 in kolom 2 → lijnt automatisch onder de wordmark uit,
   zonder magische px. font-size = enige schaalknop (desktop ↔ mobiel). */
.login-lockup {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 22px;
    font-size: 94px;
    line-height: 1;
}

.login-lockup .login-mark {
    grid-column: 1;
    grid-row: 1;
    color: var(--ondark);
}

.login-wordmark {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1em;
    line-height: 1;
    letter-spacing: -3px;
    color: var(--ondark);
}

.login-tagline {
    grid-column: 2;
    grid-row: 2;
    margin: 18px 0 0;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 27px;
    line-height: 1.35;
    letter-spacing: -0.4px;
    color: var(--ondark);
    max-width: 440px;
}

.login-version {
    position: absolute;
    bottom: 30px;
    left: 84px;
    z-index: 2;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ondark-mute);
}

/* ── formulier-kolom (rechts) ────────────────────────────── */
.login-panel {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    padding-right: 84px;
}

.login-glass {
    width: 372px;
    background: var(--glass-bg);
    border: 1px solid var(--ondark-line);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 36px 36px 38px;
}

.login-eyebrow {
    display: block;
    margin-bottom: 20px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--accent-hover);
}

.login-intro {
    margin: -8px 0 22px;
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ondark-mute);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* veld = mono-label boven een vierkant input */
.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.field-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ondark-mute);
    transition: color .14s;
}

.field:focus-within .field-label {
    color: var(--ondark);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ondark);
    background: var(--field-bg);
    border: 1px solid var(--ondark-line);
    border-radius: 0;
    transition: border-color .14s, box-shadow .14s;
}

input::placeholder {
    color: var(--ondark-mute);
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

/* ── primaire knop ───────────────────────────────────────── */
.button {
    margin-top: 4px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    transition: background .14s, border-color .14s;
}

.button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.button .button-arrow {
    transition: transform .14s;
}

.button:hover .button-arrow {
    transform: translateX(3px);
}

/* ── 2FA-extra's ─────────────────────────────────────────── */
.tfa-step {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tfa-step-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ondark-mute);
}

/* zwart-op-witte QR leesbaar op donkere glas-kaart */
.qr-plate {
    align-self: flex-start;
    background: #fff;
    padding: 12px;
}

.qr-plate img {
    display: block;
    width: 100%;
    max-width: 200px;
}

.setup-key {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--ondark);
    word-break: break-all;
    background: var(--field-bg);
    border: 1px solid var(--ondark-line);
    padding: 12px 14px;
}

/* ── meldingen / validatie ───────────────────────────────── */
.text-danger,
.field-validation-error {
    margin-bottom: 4px;
    font-size: 13px;
    color: #ff9b8a;
    list-style: none;
}

.field-validation-error {
    display: block;
    margin-top: -3px;
}

.validation-summary-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── mobiel ──────────────────────────────────────────────── */
@media (max-width: 720px) {
    .login-split {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 32px 22px;
    }

    .login-brand {
        flex: 0 0 auto;
        padding: 8px 0 28px;
        max-width: none;
        text-align: center;
    }

    .login-lockup {
        font-size: 40px;
        justify-content: center;
        column-gap: 12px;
    }

    .login-lockup .login-mark {
        width: 28px;
        height: 28px;
    }

    .login-wordmark {
        letter-spacing: -1.5px;
    }

    .login-tagline {
        grid-column: 1 / -1;
        text-align: center;
        font-size: 15px;
        margin: 14px auto 0;
        max-width: 320px;
    }

    .login-version {
        position: static;
        margin-top: 18px;
        text-align: center;
    }

    .login-panel {
        flex: 0 0 auto;
        padding-right: 0;
        display: flex;
        justify-content: center;
    }

    .login-glass {
        width: 100%;
        max-width: 372px;
    }
}

/* ── motion-uit ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .omd-aura {
        animation: none !important;
    }
}
