:root {
    --bg: #0b1020;
    --panel: #121933;
    --muted: #8ea0c9;
    --text: #e8eeff;
    --ok: #38b000;
    --warn: #ffcc00;
    --err: #ff4d4f;
    --accent: #6ea8fe;
    --border: rgba(255, 255, 255, .10);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body.page {
    min-height: 100dvh;
    /* sticky footer */
    display: flex;
    flex-direction: column;
    margin: 0;
    font: 15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 800px at 20% -10%, #1b2a63 0%, transparent 70%),
        radial-gradient(1400px 1200px at 120% 10%, #18224a 0%, transparent 60%),
        var(--bg);
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
}

main.container {
    flex: 1;
    width: 100%;
}

/* header / footer */

.site-header {
    padding: 28px 0 14px;
}

.header__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brandlockup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    margin: 0;
    font-size: 28px;
    letter-spacing: .3px;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(110, 168, 254, .6);
}

.tagline {
    margin: 0;
    color: var(--muted);
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px;
    margin: 8px 0 24px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: .9fr 1.1fr;
    }
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label {
    color: var(--muted);
    font-size: 12px;
}

.input {
    width: 100%;
    background: #0e1430;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    outline: none;
    transition: border .15s ease, box-shadow .15s ease, transform .06s ease;
}

.input::placeholder {
    color: rgba(142, 160, 201, 0.8);
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(110, 168, 254, .15);
}

/* buttons */

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-row-main {
    margin-top: 6px;
}

/* push Register to the right on wider screens */
@media (min-width: 520px) {
    .btn-row-main {
        align-items: center;
    }

    #btn-register {
        margin-left: auto;
    }
}

/* stack nicely on small screens */
@media (max-width: 519px) {
    .btn-row-main {
        flex-direction: column;
    }

    .btn-row-main .btn {
        width: 100%;
        justify-content: center;
    }
}

.btn {
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #18244d;
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    transition: transform .06s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn--primary {
    background: #6ea8fe;
    border-color: transparent;
}

.btn--primary:hover {
    box-shadow: 0 8px 20px rgba(110, 168, 254, 0.4);
}

.btn--ghost {
    background: #0e1430;
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* messages */

.msg {
    min-height: 22px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.msg--ok {
    color: var(--ok);
}

.msg--warn {
    color: var(--warn);
}

.msg--err {
    color: var(--err);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 12px 0 10px;
}

/* status panel */

.status {
    background: #0e1430;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 14px;
}

.status__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.pill {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.pill--ok {
    background: rgba(56, 176, 0, .18);
    color: #caffbf;
}

.pill--no {
    background: rgba(255, 77, 79, .20);
    color: #ffd9d9;
}

.hint {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: auto;
    /* sticky */
    color: var(--muted);
    padding: 20px 0 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.noscript {
    background: #220;
    color: #ffd;
    padding: 10px;
    text-align: center;
}

/* Motion-safe: reduce animation for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {

    .btn,
    .input {
        transition: none;
    }
}