﻿:root {
    --auth-bg: #f2ecd8;
    --auth-bg-deep: #d7dfc2;
    --auth-surface: rgba(255, 248, 232, 0.8);
    --auth-surface-strong: rgba(255, 248, 232, 0.94);
    --auth-line: rgba(31, 58, 39, 0.22);
    --auth-line-soft: rgba(31, 58, 39, 0.1);
    --auth-text: #132217;
    --auth-muted: #486050;
    --auth-accent: #e3522f;
    --auth-accent-strong: #b83618;
    --auth-danger: #b85d3f;
    --auth-success: #2f8c44;
    --auth-radius-lg: 24px;
    --auth-radius-md: 14px;
    --auth-shadow: 0 26px 64px rgba(16, 34, 23, 0.16);
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--auth-text);
    font-family: "Azeret Mono", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 16%, rgba(244, 127, 58, 0.22), transparent 32%),
        radial-gradient(circle at 90% 0%, rgba(63, 148, 81, 0.16), transparent 38%),
        radial-gradient(circle at 85% 92%, rgba(173, 124, 66, 0.18), transparent 44%),
        linear-gradient(145deg, var(--auth-bg), var(--auth-bg-deep));
    display: grid;
    place-items: center;
    padding: clamp(0.9rem, 2vw, 1.6rem);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        -28deg,
        rgba(19, 34, 23, 0.05) 0,
        rgba(19, 34, 23, 0.05) 1px,
        transparent 1px,
        transparent 13px
    );
    opacity: 0.12;
}

.auth-shell {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(300px, 0.9fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.auth-hero,
.auth-card {
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius-lg);
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    position: relative;
}

.auth-hero::after,
.auth-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border: 1px solid var(--auth-line-soft);
    border-radius: calc(var(--auth-radius-lg) - 2px);
    pointer-events: none;
}

.auth-hero {
    padding: clamp(1.2rem, 2.4vw, 2rem);
    display: grid;
    align-content: space-between;
    gap: 1.6rem;
}

.auth-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: var(--auth-muted);
}

.auth-title {
    margin: 0.7rem 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
    line-height: 1.05;
}

.auth-copy {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.6;
    max-width: 34ch;
}

.auth-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.auth-list li {
    border: 1px solid rgba(31, 58, 39, 0.16);
    border-radius: 999px;
    padding: 0.48rem 0.72rem;
    background: rgba(255, 248, 232, 0.72);
    font-size: 0.78rem;
    color: #304737;
}

.auth-card {
    padding: clamp(1.2rem, 2.4vw, 2rem);
    display: grid;
    gap: 0.95rem;
    align-content: start;
}

.auth-card h1 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem);
}

.auth-subtitle {
    color: var(--auth-muted);
    margin: 0 0 0.35rem;
    line-height: 1.45;
    font-size: 0.88rem;
}

.auth-form {
    display: grid;
    gap: 0.7rem;
}

.auth-field {
    display: grid;
    gap: 0.38rem;
}

.auth-field label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #304737;
}

.auth-field input {
    border: 1px solid rgba(31, 58, 39, 0.2);
    border-radius: var(--auth-radius-md);
    background: rgba(255, 248, 232, 0.86);
    color: var(--auth-text);
    padding: 0.73rem 0.78rem;
    font-family: "Azeret Mono", monospace;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-password-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
}

.auth-password-toggle {
    border: 1px solid rgba(31, 58, 39, 0.2);
    border-radius: var(--auth-radius-md);
    background: rgba(255, 248, 232, 0.88);
    color: #304737;
    font-family: "Azeret Mono", monospace;
    font-size: 0.74rem;
    padding: 0.38rem 0.65rem;
    cursor: pointer;
    min-width: 3.9rem;
    transition: border-color 140ms ease, filter 140ms ease;
}

.auth-password-toggle:hover {
    border-color: rgba(227, 82, 47, 0.52);
    filter: brightness(1.06);
}

.auth-password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 82, 47, 0.16);
}

.auth-field input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(227, 82, 47, 0.16);
}

.password-strength {
    margin: 0.18rem 0 0;
    color: var(--auth-muted);
    font-size: 0.72rem;
    min-height: 1rem;
}

.password-strength.is-error {
    color: #f2b5a7;
}

.password-strength.is-success {
    color: var(--auth-success);
}

.password-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.28rem;
}

.password-checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.79rem;
    color: var(--auth-muted);
}

.password-checklist li::before {
    content: "○";
    color: rgba(186, 208, 191, 0.85);
    font-size: 0.85rem;
    line-height: 1;
}

.password-checklist li.is-valid {
    color: var(--auth-success);
}

.password-checklist li.is-valid::before {
    content: "✓";
    color: var(--auth-success);
}

.auth-btn {
    border: 1px solid rgba(179, 53, 23, 0.74);
    border-radius: 999px;
    background: linear-gradient(125deg, var(--auth-accent), var(--auth-accent-strong));
    color: #fffaf2;
    font-family: "Azeret Mono", monospace;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.78rem 1rem;
    cursor: pointer;
    transition: transform 140ms ease, filter 140ms ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.auth-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.auth-status {
    min-height: 1.15rem;
    margin: 0;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.auth-status.error {
    color: var(--auth-danger);
}

.auth-status.success {
    color: var(--auth-success);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    color: var(--auth-muted);
    font-size: 0.78rem;
}

.auth-links a {
    color: var(--auth-accent-strong);
    text-underline-offset: 2px;
}

.auth-links a:hover {
    color: #8e2812;
}

.auth-footnote {
    margin: 0;
    color: rgba(72, 96, 80, 0.92);
    font-size: 0.72rem;
    line-height: 1.5;
}

@media (max-width: 880px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        order: 2;
    }
}
