:root {
    --auth-bg: #050a11;
    --auth-shell-bg: linear-gradient(180deg, rgba(8, 13, 20, 0.82) 0%, rgba(8, 13, 20, 0.68) 100%);
    --auth-shell-border: rgba(151, 166, 189, 0.12);
    --auth-text: #f5f7fb;
    --auth-muted: #8c9ab0;
    --auth-label: #c6cfdd;
    --auth-input-bg: rgba(10, 18, 29, 0.88);
    --auth-input-border: rgba(151, 166, 189, 0.16);
    --auth-input-border-focus: rgba(0, 102, 255, 0.65);
    --auth-link: #8fb8ff;
    --auth-link-hover: #bfd4ff;
    --auth-status: #f3b73f;
    --auth-button: #2c66f6;
    --auth-button-hover: #3e76ff;
    --auth-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

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

body.auth-page {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background:
        radial-gradient(circle at 50% 22%, rgba(27, 63, 140, 0.18), transparent 34%),
        var(--auth-bg);
    color: var(--auth-text);
    font-family: Inter, system-ui, sans-serif;
}

.auth-shell {
    width: min(var(--auth-shell-width, 500px), 100%);
    padding: 36px 34px 28px;
    border: 1px solid var(--auth-shell-border);
    border-radius: 28px;
    background: var(--auth-shell-bg);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(16px) saturate(130%);
}

.auth-shell--register {
    --auth-shell-width: 500px;
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: 0;
    margin-bottom: 30px;
    text-align: center;
}

.auth-brand__wordmark {
    font-size: clamp(32px, 6vw, 44px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.auth-brand__wordmark-bobby {
    color: #ffffff;
}

.auth-brand__wordmark-terminal {
    margin-left: 0.24em;
    color: #0066ff;
}

.auth-brand__title {
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-label);
}

.auth-field input,
.auth-field textarea {
    width: 100%;
    border: 1px solid var(--auth-input-border);
    border-radius: 15px;
    background: var(--auth-input-bg);
    color: var(--auth-text);
    padding: 14px 15px;
    font: inherit;
    line-height: 1.35;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.auth-field textarea {
    min-height: 116px;
    resize: vertical;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
    color: rgba(168, 180, 199, 0.55);
}

.auth-field input:focus,
.auth-field textarea:focus {
    outline: none;
    border-color: var(--auth-input-border-focus);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
    background: rgba(11, 21, 34, 0.96);
}

.auth-button {
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    border: 0;
    border-radius: 15px;
    background: var(--auth-button);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 140ms ease, transform 140ms ease;
}

.auth-button:hover,
.auth-button:focus-visible {
    background: var(--auth-button-hover);
}

.auth-button:active {
    transform: translateY(1px);
}

.auth-status {
    min-height: 20px;
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--auth-status);
}

.auth-link-row {
    margin-top: 10px;
    text-align: center;
}

.auth-link {
    color: var(--auth-link);
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.auth-link:hover,
.auth-link:focus-visible {
    color: var(--auth-link-hover);
}

@media (max-width: 640px) {
    body.auth-page {
        padding: 20px 16px;
    }

    .auth-shell {
        padding: 28px 22px 24px;
        border-radius: 24px;
    }

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

    .auth-brand__wordmark {
        font-size: clamp(28px, 7vw, 32px);
    }
}
