/* Pagina voor veilig versturen (share/), zelfde opmaak als de betaalpagina, in de stijl van de inlogpagina (sso/public/assets/sso.css): inhoud links, foto rechts, Barlow en de
   ronde blauwe knop. Geen externe bestanden (CSP: alles van deze server). */
@font-face { font-family: "Barlow"; font-style: normal; font-display: swap; font-weight: 300; src: url(fonts/barlow-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-display: swap; font-weight: 800; src: url(fonts/barlow-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/noto-sans-latin-500-normal.woff2) format("woff2"); }

:root {
    --brand: #0099d8;
    --brand-hover: #00a6ed;
    --text: #222222;
    --muted: #b3b3b3;
    --muted-dark: #6b7785;
    --line: #efefef;
    --ok: #2e7d32;
    --warn: #8a5300;
    --warn-bg: #fff4e0;
    --danger: #a4262c;
    --danger-bg: #fdecea;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #fff; color: var(--text); font-size: 16px; line-height: 1.5; }

/* Twee helften: links inhoud, rechts foto (op smalle schermen alleen de inhoud) */
.half { display: flex; min-height: 100vh; }
.half .contents { width: 50%; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.half .inner { width: 100%; max-width: 560px; }
.half .bg { width: 50%; position: relative; overflow: hidden; background: #e9eef2; }
.half .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1199.98px) { .half .contents { width: 100%; } .half .bg { display: none; } }

.share-logo { display: inline-block; width: 11rem; margin: 0 0 40px; }
.share-logo img { width: 100%; height: auto; display: block; }

h1 { font-size: 28px; font-weight: 400; margin: 0 0 24px; line-height: 1.2; }
h1 strong { font-weight: 800; }
p { margin: 0 0 16px; }
.muted { color: var(--muted-dark); font-weight: 300; }
.small { font-size: .9rem; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .95em; letter-spacing: .05em; }
a { color: var(--brand); }

/* Openstaand bedrag */
.amount { margin: 0 0 24px; }
.amount span { display: block; font-size: 12px; color: var(--muted); }
.amount strong { display: block; font-size: 44px; font-weight: 800; line-height: 1.1; }

/* Gegevens als één blok met labels erin (zoals de velden van de inlogpagina) */
.fields { margin: 0 0 24px; }
.field { border: 1px solid var(--line); border-bottom: none; padding: 12px 15px; }
.field:first-child { border-top-left-radius: 7px; border-top-right-radius: 7px; }
.field:last-child { border-bottom: 1px solid var(--line); border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; }
.field dt { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }
.field dd { margin: 0; font-size: 20px; line-height: 1.5; }
dl.fields { padding: 0; }

/* Knop zoals de inlogknop */
form { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 20px 9px 10px; font-family: "Noto Sans", sans-serif;
       font-size: 17px; font-weight: 500; letter-spacing: .2px; line-height: 1.5; border-radius: 30px; border: none; cursor: pointer; text-decoration: none;
       background: var(--brand); color: #fff; }
.btn:hover, .btn:focus-visible { background: var(--brand-hover); color: #fff; }
.btn-logo { height: 32px; width: auto; flex: none; border-radius: 16px; }

.alert { background: var(--danger-bg); color: var(--danger); padding: 12px 16px; border-radius: 7px; margin: 0 0 20px; }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

.share-foot { display: flex; align-items: center; gap: 10px; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.share-foot-logo { height: 24px; width: auto; border-radius: 4px; }

/* Betaald / wordt verwerkt */
.check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 0 16px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; margin: 0 0 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Donker: volgt de instelling van het apparaat */
@media (prefers-color-scheme: dark) {
    :root { color-scheme: dark; --text: #e6e9ec; --muted: #8a949d; --muted-dark: #a7b0b8; --line: #353c43; --ok: #43a047;
            --warn: #ffcc80; --warn-bg: #3a2a12; --danger: #ff8a8f; --danger-bg: #3d1d1f; }
    body { background: #1b1f23; }
    .half .bg { background: #121417; }
    .share-logo img { filter: brightness(0) invert(1); }
}

/* Veilig versturen: toegangscode, gegevens met Kopiëren */
.code-input { width: 100%; font-size: 24px; letter-spacing: .3em; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text); font-family: ui-monospace, Consolas, monospace; }
label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.shared-values { margin: 0 0 16px; }
.shared-values dt { font-size: 12px; color: var(--muted); margin: 12px 0 2px; }
.shared-values dd { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shared-value { font-size: 18px; word-break: break-all; }
.btn-link { background: none; border: none; color: var(--brand); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
h2 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
[hidden] { display: none !important; }
.shared-form .btn { padding: 9px 28px; }
.shared-form .fields { border: none; }
