@font-face {
    font-family: "FS Terminal";
    src: url("/gateway/fonts/fs-terminal.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg: #090b0e;
    --bg-deep: #080a0d;
    --panel: #0f1318;
    --panel-header: #12171d;

    --line: #303741;
    --line-soft: #242a31;
    --line-focus: #7e8995;

    --text: #d7dde5;
    --text-bright: #eef1f4;
    --text-soft: #aeb6c0;
    --text-muted: #7d8793;

    --input-bg: #090c10;
    --button-bg: #171c22;
    --button-hover: #1d232a;

    --glow: rgba(216, 219, 224, 0.08);
    --content-width: 980px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

html {
    background: var(--bg-deep);
}

body {
    min-height: 100dvh;

    display: flex;
    justify-content: center;

    overflow-x: hidden;
    overflow-y: auto;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 255, 255, 0.03),
            transparent 34rem
        ),
        linear-gradient(
            180deg,
            var(--bg-deep) 0%,
            #0b0e12 100%
        );

    color: var(--text);

    font-family:
        "FS Terminal",
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    font-weight: 400;
}

.shell {
    width: 100%;
    min-height: 100dvh;

    display: grid;
    grid-template-rows: 1fr auto;

    padding:
        clamp(28px, 5vh, 64px)
        clamp(28px, 6vw, 96px)
        18px;
}

.panel {
    width: 100%;
    min-height: calc(100dvh - 150px);

    display: grid;
    grid-template-rows: auto 1fr;

    border: 1px solid var(--line);

    background: rgba(15, 19, 24, 0.94);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.banner {
    padding:
        clamp(16px, 2.5vh, 22px)
        clamp(24px, 4vw, 38px);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    border-bottom: 1px solid var(--line);

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025),
            transparent 45%
        ),
        var(--panel-header);

    color: #b8c0ca;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.status-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    margin-right: 8px;

    border-radius: 50%;
    background: #a9b0b9;

    box-shadow: 0 0 10px var(--glow);
}

.content {
    padding:
        clamp(44px, 7vh, 84px)
        clamp(36px, 7vw, 120px);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    margin: 0 0 8px;

    color: var(--text);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
}

.code {
    margin-bottom: 28px;
    color: #8f99a5;
    font-size: 15px;
}

.reason {
    max-width: 920px;

    margin: 30px 0 42px;
    padding: 16px 0 16px 22px;

    border-left: 2px solid #6e7782;
}

.reason strong {
    display: block;
    margin-bottom: 6px;

    color: var(--text);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reason span {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.45;
}

.prompt {
    margin: 36px 0 14px;
    color: #98a2ad;
    font-size: 15px;
}

.entry {
    width: min(var(--content-width), 100%);

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field,
.challenge-field {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label,
.challenge-field label {
    color: #7f8994;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 15px 16px;

    border: 1px solid #3a434d;
    border-radius: 0;

    background: var(--input-bg);
    color: var(--text-bright);

    outline: none;

    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.04em;

    caret-color: var(--text-bright);

    transition:
        border-color 120ms ease,
        box-shadow 120ms ease,
        background 120ms ease;
}

input:hover {
    border-color: #505a65;
}

input:focus {
    border-color: var(--line-focus);

    box-shadow:
        0 0 0 3px rgba(126, 137, 149, 0.08);

    background: #0b0f13;
}

input:disabled {
    opacity: 0.55;
    cursor: wait;
}

#challenge {
    width: 100%;
}

#challenge:empty {
    display: none;
}

.challenge-field {
    margin-top: 2px;
}

button {
    width: fit-content;
    min-width: 132px;
    height: 48px;

    margin-top: 4px;
    padding: 0 22px;

    border: 1px solid #66717c;
    border-radius: 0;

    background: var(--button-bg);
    color: #d9dee4;

    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    cursor: pointer;

    transition:
        background 120ms ease,
        border-color 120ms ease;
}

button:hover:not(:disabled) {
    background: var(--button-hover);
    border-color: #7d8894;
}

button:focus-visible {
    outline: 1px solid #8d98a4;
    outline-offset: 3px;
}

button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.message {
    min-height: 20px;
    margin-top: 12px;

    color: #8e98a4;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.footer {
    margin-top: 0;
    padding-top: 16px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 28px;

    color: #5f6872;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.footer-brand {
    color: #7d8793;
    white-space: nowrap;
}

.footer-legal {
    max-width: 760px;
    line-height: 1.35;
}

.footer-contact {
    white-space: nowrap;
}
  

@media (max-width: 700px) {
    .shell {
        padding: 12px 12px 10px;
    }

    .panel {
        min-height: calc(100dvh - 90px);
    }

    .banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .content {
        padding: 28px 20px 24px;
    }

    .reason {
        margin: 24px 0 30px;
    }

    button {
        width: 100%;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .footer-contact {
        white-space: normal;
    }
}

@media (min-width: 1400px) {
    h1 {
        font-size: clamp(38px, 3vw, 52px);
    }

    .reason span {
        font-size: 19px;
    }

    .prompt {
        font-size: 17px;
    }

    input {
        font-size: 22px;
    }

    button {
        font-size: 18px;
    }

    .banner {
        font-size: 15px;
    }

    .footer {
        font-size: 14px;
    }
}
