:root {
    --surface-primary: #f3ebe2;
    --surface-card: #fffdfc;
    --surface-muted: #eee6df;
    --foreground-primary: #1a1a1a;
    --foreground-secondary: #3d3d3d;
    --foreground-muted: #6b6b6b;
    --accent-primary: #d4916e;
    --accent-secondary: #c4cfde;
    --border-subtle: #c5beb6;
    --danger-soft: #f6d6d0;
    --danger-text: #8b3323;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(212, 145, 110, 0.22), transparent 28%),
        linear-gradient(180deg, #f7efe7 0%, #f3ebe2 100%);
    color: var(--foreground-primary);
    font-family: "Geist", "Inter", system-ui, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 460px);
    gap: 40px;
    align-items: center;
}

.auth-hero {
    display: flex;
    flex-direction: column;
}

.auth-hero h1,
.auth-card h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: -0.03em;
}

.auth-eyebrow,
.auth-badge,
.auth-points span,
.auth-note strong,
.auth-topbar__badge,
.auth-trust-line {
    font-family: "Geist Mono", monospace;
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
}

.brand {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--foreground-primary);
}

.auth-topbar__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(212, 145, 110, 0.14);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.auth-divider {
    width: 100%;
    height: 1px;
    background: rgba(197, 190, 182, 0.72);
    margin-bottom: 28px;
}

.auth-eyebrow {
    margin: 0 0 18px;
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-hero h1 {
    font-size: clamp(3rem, 6vw, 4.9rem);
    line-height: 0.96;
    max-width: 11ch;
}

.auth-lead,
.auth-points p,
.auth-card__header p,
.auth-note p,
.auth-form label,
.auth-error {
    color: var(--foreground-secondary);
    line-height: 1.55;
}

.auth-lead {
    max-width: 40rem;
    font-size: 20px;
    margin: 22px 0 28px;
}

.auth-trust-line {
    margin: 0 0 28px;
    color: var(--foreground-muted);
    font-size: 12px;
    letter-spacing: 0.03em;
}

.auth-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 52rem;
}

.auth-points article {
    background: rgba(255, 253, 252, 0.76);
    border: 1px solid rgba(197, 190, 182, 0.55);
    border-radius: 14px;
    padding: 18px;
    backdrop-filter: blur(8px);
}

.auth-points span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.auth-points strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.auth-points p {
    margin: 0;
    font-size: 15px;
}

.auth-card-wrap {
    display: flex;
    justify-content: flex-end;
}

.auth-card {
    width: min(100%, 460px);
    background: var(--surface-card);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(197, 190, 182, 0.65);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--foreground-muted);
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 16px;
}

.auth-card h2 {
    font-size: 42px;
    line-height: 0.98;
    margin-bottom: 10px;
}

.auth-card__header p {
    margin: 0 0 22px;
    font-size: 17px;
}

.auth-error {
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--danger-soft);
    color: var(--danger-text);
    padding: 14px 16px;
    border: 1px solid rgba(139, 51, 35, 0.18);
}

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

.auth-form label {
    font-size: 14px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    padding: 16px 18px;
    font: 16px/1.4 "Geist", sans-serif;
    color: var(--foreground-primary);
    background: #fffefe;
}

.auth-form input:focus {
    outline: 2px solid rgba(212, 145, 110, 0.35);
    border-color: var(--accent-primary);
}

.auth-form button {
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--foreground-primary);
    color: var(--surface-primary);
    font: 600 16px/1 "Geist", sans-serif;
    padding: 16px 22px;
    cursor: pointer;
    transition: transform 120ms ease, opacity 120ms ease;
}

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

.auth-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(197, 190, 182, 0.55);
}

.auth-note strong {
    display: block;
    font-size: 12px;
    color: var(--foreground-muted);
    margin-bottom: 8px;
}

.auth-note p {
    margin: 0;
    font-size: 14px;
}

.auth-note code {
    font-family: "Geist Mono", monospace;
}

@media (max-width: 1024px) {
    .auth-shell {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 28px 0 40px;
    }

    .auth-card-wrap {
        justify-content: stretch;
    }

    .auth-card {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .auth-shell {
        width: min(100% - 24px, 100%);
        gap: 24px;
    }

    .auth-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-points {
        grid-template-columns: 1fr;
    }

    .auth-form button {
        width: 100%;
    }
}
