:root {
    --auth-bg: #0f1419;
    --auth-surface: #171d25;
    --auth-border: rgba(232, 238, 245, 0.08);
    --auth-text: #e8eef5;
    --auth-muted: #8b97a8;
    --auth-accent: #3dbea5;
    --auth-accent-soft: rgba(61, 190, 165, 0.14);
    --auth-danger: #f07178;
    --auth-danger-soft: rgba(240, 113, 120, 0.12);
    --auth-radius: 14px;
    --auth-font: "Segoe UI", "Helvetica Neue", sans-serif;
}

body:has(.auth) {
    font-family: var(--auth-font);
    background:
        radial-gradient(1000px 500px at 15% -10%, rgba(61, 190, 165, 0.16), transparent 55%),
        radial-gradient(800px 420px at 100% 0%, rgba(90, 140, 200, 0.12), transparent 50%),
        var(--auth-bg);
    color: var(--auth-text);
}

body:has(.auth) .site-header,
body:has(.auth) .site-footer {
    background: transparent;
    border-bottom: 1px solid var(--auth-border);
    color: var(--auth-text);
}

body:has(.auth) .site-footer {
    border-bottom: 0;
    border-top: 1px solid var(--auth-border);
    color: var(--auth-muted);
}

body:has(.auth) .site-main {
    align-items: center;
    justify-content: center;
}

body:has(.auth) .content-wrapper {
    max-width: 440px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.auth-brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.auth-brand__link {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--auth-text);
    text-decoration: none;
}

.auth-brand__label {
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth {
    width: 100%;
}

.auth-card {
    padding: 28px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
}

.auth-card__header {
    margin-bottom: 22px;
}

.auth-card__title {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.5;
}

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

.auth-label {
    margin-top: 8px;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: var(--auth-bg);
    color: var(--auth-text);
    font: inherit;
}

.auth-input:focus {
    outline: 2px solid rgba(61, 190, 165, 0.45);
    outline-offset: 1px;
}

.auth-button {
    margin-top: 14px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--auth-accent);
    color: #0b1210;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.auth-button:hover {
    filter: brightness(1.08);
}

.auth-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(240, 113, 120, 0.35);
    border-radius: 10px;
    background: var(--auth-danger-soft);
    color: var(--auth-danger);
    line-height: 1.45;
}

.auth-alert--success {
    border-color: rgba(61, 190, 165, 0.35);
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
}

.auth-field-error {
    margin: 0 0 4px;
    color: var(--auth-danger);
    font-size: 0.85rem;
}

.auth-hint {
    margin: 4px 0 8px;
    color: var(--auth-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-hint code {
    color: var(--auth-accent);
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--auth-muted);
    text-align: center;
}

.auth-switch a {
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

