:root {
    --page-bg: #050910;
    --panel: rgba(9, 17, 27, 0.97);
    --panel-soft: rgba(17, 30, 44, 0.88);
    --line: rgba(82, 126, 153, 0.44);
    --line-strong: rgba(87, 213, 232, 0.7);
    --text: #eef7f6;
    --muted: #9eb1b1;
    --cyan: #67dceb;
    --teal: #2d9bc1;
    --red: #ffb3a8;
    --green: #a6e7ad;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(2, 7, 13, 0.58), rgba(4, 8, 14, 0.97)),
        radial-gradient(circle at 70% 28%, rgba(30, 111, 151, 0.2), transparent 34%),
        url("overview-planet.png") center 22% / cover fixed,
        var(--page-bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

button,
input {
    font: inherit;
}

.request-throttle-page {
    overflow: hidden;
}

.request-throttle-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 7, 13, 0.58);
    backdrop-filter: blur(7px);
}

.request-throttle-dialog {
    position: static;
    width: min(100%, 520px);
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.request-throttle-dialog::backdrop {
    background: rgba(1, 5, 9, 0.84);
}

.request-throttle-dialog h1 {
    margin: 8px 0 12px;
    color: var(--red);
}

.request-throttle-dialog p {
    color: var(--muted);
    line-height: 1.55;
}

.request-throttle-kicker {
    margin: 0;
    color: var(--cyan) !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.request-throttle-countdown {
    display: block;
    margin: 22px 0;
    color: var(--cyan);
    font-size: 1.45rem;
}

.request-throttle-dialog .submit-button:disabled {
    cursor: wait;
    opacity: 0.48;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.auth-card {
    width: min(100%, 470px);
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    padding: 28px;
}

.auth-command-strip {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: -28px -28px 24px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(31, 61, 85, 0.9), rgba(14, 28, 43, 0.96));
    padding: 12px 16px;
}

.auth-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: linear-gradient(145deg, rgba(35, 131, 166, 0.8), rgba(12, 39, 57, 0.94));
    color: white;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.auth-command-strip strong,
.auth-command-strip span {
    display: block;
}

.auth-command-strip strong {
    color: var(--text);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-command-strip span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.7rem;
}

.auth-brand {
    margin-bottom: 24px;
    text-align: left;
}

.auth-brand h1 {
    margin: 0;
    color: var(--cyan);
    font-size: 1.7rem;
    letter-spacing: 0.02em;
}

.auth-brand p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(5, 12, 20, 0.86);
    color: var(--text);
    padding: 10px 12px;
    outline: none;
}

input:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(110, 215, 223, 0.12);
}

.checkbox-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
}

.submit-button {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: linear-gradient(180deg, #218db4, #146787);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.submit-button:hover,
.submit-button:focus-visible {
    border-color: var(--line-strong);
    filter: brightness(1.12);
}

.links {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.messages,
.errors,
.field-errors {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.message,
.errors li,
.field-errors li {
    border: 1px solid rgba(255, 179, 168, 0.24);
    border-radius: 2px;
    background: rgba(70, 24, 24, 0.24);
    color: var(--red);
    padding: 8px 10px;
    font-size: 0.86rem;
}

.message.success {
    border-color: rgba(166, 231, 173, 0.24);
    background: rgba(24, 70, 38, 0.24);
    color: var(--green);
}

.message.warning {
    border-color: rgba(239, 190, 94, 0.28);
    background: rgba(91, 59, 18, 0.25);
    color: #efc46d;
}

.resend-verification {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.resend-verification summary {
    color: var(--cyan);
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}

.resend-verification form {
    margin-top: 14px;
}

.compact-button {
    min-height: 40px;
}

.field-errors {
    margin-top: 8px;
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 22px;
    }

    .auth-command-strip {
        margin: -22px -22px 22px;
    }
}
