/* KrsKrt PIN-entry screens (/mm marker register + /rr report register).
 *
 * Ported from the legacy mu-plugin marker-register.css so the Node's PIN-entry
 * pages carry the same dark KrsKrt branding as old.krskrt.com/mm instead of the
 * bare fallback. Lekton @font-face points at the engine's self-hosted shared
 * layer (`/shared/<hash>.woff2`, the same hashes marker-client.css uses) so the
 * page is self-contained on any Node. Served at /browser/marker-register.css. */

/* Lekton — woff2, font-display:swap (system fallback renders immediately). */
@font-face {
    font-family: "Lekton";
    font-style:  normal;
    font-weight: 400;
    font-display: swap;
    src: url("/shared/e9295ac1c5bc825e707746d85a91c875571641e1044014c32d002220a8267f76.woff2") format("woff2");
}
@font-face {
    font-family: "Lekton";
    font-style:  normal;
    font-weight: 700;
    font-display: swap;
    src: url("/shared/50e3da72118ac99f5a5a7d8ba9050ac4aeb806f073b8cf5237e2e3548b2556a8.woff2") format("woff2");
}
@font-face {
    font-family: "Lekton";
    font-style:  italic;
    font-weight: 400;
    font-display: swap;
    src: url("/shared/ef7d4430052f6ef8166706d8fa188a61b78e1cade6ff9fa9e5257b7e9229aafc.woff2") format("woff2");
}

/* Same dark theme as marker-client.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: #0f0f1a;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#mm-register {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.mm-reg-card {
    background: #1e1e2e;
    border: 1px solid #2d2d44;
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mm-reg-logo { margin-bottom: 20px; }
.mm-reg-logo img { width: 48px; height: 48px; opacity: 0.9; }

.mm-reg-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.mm-reg-help {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 28px;
    line-height: 1.5;
}

.mm-pin-input {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Lekton', ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: 0.25em;
    text-align: center;
    text-transform: uppercase;
    color: #f8fafc;
    background: #12121e;
    border: 2px solid #3b3b5c;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 16px;
    caret-color: #6ee7b7;
}
.mm-pin-input:focus { border-color: #6ee7b7; }
.mm-pin-input::placeholder { color: #374151; letter-spacing: 0.2em; }

.mm-reg-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f0f1a;
    background: #6ee7b7;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    margin-bottom: 12px;
}
.mm-reg-btn:hover:not(:disabled) { background: #34d399; }
.mm-reg-btn:disabled { opacity: 0.5; cursor: default; }

.mm-reg-error {
    font-size: 0.8125rem;
    color: #f87171;
    min-height: 20px;
}
