
    :root {
        --bg-1: #7a0d0d;
        --bg-2: #3d0505;
        --panel: rgba(0, 0, 0, 0.35);
        --panel-border: rgba(255, 255, 255, 0.14);
        --text: #ffffff;
        --text-dim: rgba(255, 255, 255, 0.72);
        --input-bg: rgba(255, 255, 255, 0.08);
        --input-border: rgba(255, 255, 255, 0.22);
        --accent: #ff2b2b;
        --accent-hover: #e60000;
        --err: #ffb0b0;
        --ok: #b7f3b8;
    }
    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
        margin: 0;
        min-height: 100dvh;
        color: var(--text);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        background:
            linear-gradient(180deg, rgba(122, 13, 13, 0.35), rgba(61, 5, 5, 0.55)),
            url('/assets/bg.jpg') center/cover no-repeat,
            linear-gradient(180deg, var(--bg-1), var(--bg-2));
        background-attachment: fixed, fixed, fixed;
    }
    .wrap {
        max-width: 480px;
        margin: 0 auto;
        padding: 32px 16px 48px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .brand { text-align: center; }
    .brand-logo {
        display: block;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
        filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    }
    .brand-title {
        margin-top: 10px;
        font-size: 20px;
        font-weight: 700;
    }
    .brand-lead {
        margin-top: 6px;
        color: var(--text-dim);
        font-size: 13px;
        line-height: 1.4;
    }
    .card {
        background: var(--panel);
        backdrop-filter: blur(10px);
        border: 1px solid var(--panel-border);
        border-radius: 12px;
        padding: 20px;
    }
    h2 {
        margin: 0 0 14px;
        font-size: 16px;
    }
    .row { margin-bottom: 12px; }
    label {
        display: block;
        font-size: 12px;
        margin-bottom: 4px;
        color: var(--text-dim);
    }
    label .req { color: var(--accent); }
    input, textarea {
        width: 100%;
        padding: 9px 12px;
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 8px;
        color: var(--text);
        font-size: 14px;
        font-family: inherit;
        outline: none;
        transition: border-color 0.15s;
    }
    input:focus, textarea:focus {
        border-color: var(--accent);
    }
    textarea { resize: vertical; min-height: 56px; }
    .row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    @media (max-width: 460px) { .row-2 { grid-template-columns: 1fr; } }
    .honeypot {
        position: absolute;
        left: -9999px;
        opacity: 0;
        pointer-events: none;
        height: 0;
        width: 0;
    }
    button {
        display: inline-block;
        width: 100%;
        padding: 11px 16px;
        background: var(--accent);
        color: #fff;
        border: 0;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.4px;
        cursor: pointer;
        transition: background 0.15s;
    }
    button:hover { background: var(--accent-hover); }
    button[disabled] { opacity: 0.55; cursor: default; }
    .field-error {
        color: var(--err);
        font-size: 12px;
        margin-top: 4px;
        min-height: 16px;
    }
    .status {
        margin-top: 12px;
        text-align: center;
        font-size: 13px;
        color: var(--text-dim);
    }
    .status.ok { color: var(--ok); font-weight: 600; }
    .status.err { color: var(--err); font-weight: 600; }
    .captcha { margin: 10px 0 4px; display: flex; justify-content: center; }
    .footer {
        margin-top: 16px;
        text-align: center;
        color: var(--text-dim);
        font-size: 12px;
    }

[hidden] { display: none !important; }
.access-links { display:flex; flex-wrap:wrap; gap:18px; margin-top:24px; }
.access-links a { color:#ffd2cf; text-underline-offset:3px; }
#access-status { margin-top:20px; line-height:1.6; }
#api-token { font-family:monospace; width:100%; margin:16px 0; }
