/* TriviaWell account pages — "The Well" brand, fully self-contained. */

@font-face {
    font-family: "Fraunces Well";
    src: url("../fonts/fraunces-latin-wght.eb2486760f75.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope Well";
    src: url("../fonts/manrope-latin-wght.938c6e8019b6.woff2") format("woff2-variations");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #1b2530;
    --ink-soft: #4c5866;
    --deep: #0f2e3f;
    --deeper: #0a2130;
    --teal: #0c7489;
    --teal-strong: #095e70;
    --gold: #d9a441;
    --gold-strong: #b98426;
    --cream: #f7f3ea;
    --surface: #fffdf8;
    --line: #e3dccc;
    --line-strong: #cfc6b2;
    --danger: #b3423a;
    --danger-tint: #f8e5e2;
    --success: #2e8f63;
    --success-tint: #e2f2ea;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --ink: #ece6d8;
    --ink-soft: #b4bcc6;
    --deep: #0c2231;
    --deeper: #081824;
    --teal: #3ba4b8;
    --teal-strong: #5dbdcf;
    --gold: #e0b05a;
    --gold-strong: #ecc37e;
    --cream: #0e1722;
    --surface: #16212e;
    --line: #263341;
    --line-strong: #344456;
    --danger: #d4685f;
    --danger-tint: #35201d;
    --success: #4cb88a;
    --success-tint: #12301f;
    color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Manrope Well", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--teal-strong);
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -3.5rem;
    left: 1rem;
    z-index: 20;
    padding: 0.6rem 1rem;
    background: var(--deep);
    color: #fff;
    border-radius: 8px;
}

.skip-link:focus { top: 1rem; }

/* Header */
.auth-site-header {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.auth-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 66rem;
    margin-inline: auto;
    padding: 0.9rem clamp(1rem, 4vw, 2rem);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: "Fraunces Well", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 650;
    color: var(--ink);
}

.auth-brand:hover {
    text-decoration: none;
    color: var(--ink);
}

.auth-brand strong { color: var(--gold-strong); }

.auth-brand__mark {
    width: 1.9rem;
    height: 1.9rem;
    color: var(--teal);
}

.auth-home-link {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Shell */
.auth-shell {
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 5vw, 3.5rem) 1rem;
    background:
        radial-gradient(70% 60% at 85% 0%, rgba(12, 116, 137, 0.09), transparent 60%),
        radial-gradient(60% 55% at 10% 100%, rgba(217, 164, 65, 0.10), transparent 55%);
}

.auth-container {
    width: 100%;
    max-width: 27rem;
}

.auth-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(15, 46, 63, 0.07), 0 18px 44px rgba(15, 46, 63, 0.11);
    overflow: hidden;
}

.auth-panel::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
}

.auth-panel__body {
    padding: clamp(1.5rem, 5vw, 2.25rem);
}

/* Headings */
.auth-heading { margin-bottom: 1.5rem; }

.auth-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-strong);
}

.auth-heading h1 {
    margin: 0 0 0.4rem;
    font-family: "Fraunces Well", Georgia, serif;
    font-size: 1.9rem;
    font-weight: 640;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.auth-heading p {
    margin: 0;
    color: var(--ink-soft);
}

/* Forms */
.auth-form { display: block; }

.auth-field { margin-bottom: 1.1rem; }

.auth-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 800;
    font-size: 0.92rem;
}

.auth-field input {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 1rem;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(12, 116, 137, 0.16);
}

.auth-field-errors {
    margin-top: 0.35rem;
    color: var(--danger);
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-field-errors p { margin: 0; }

.auth-submit {
    display: block;
    width: 100%;
    margin-top: 1.4rem;
    padding: 0.75rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 140ms ease;
}

.auth-submit:hover { background: var(--teal-strong); }

/* Notices */
.auth-notice {
    margin: 0 0 1.2rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-notice p { margin: 0; }

.auth-notice--error {
    background: var(--danger-tint);
    color: var(--danger);
}

.auth-notice--success {
    background: var(--success-tint);
    color: var(--success);
}

/* Secondary links */
.auth-secondary {
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line-strong);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.auth-secondary p { margin: 0 0 0.25rem; }

.auth-secondary a { font-weight: 700; }

.auth-secondary--left { text-align: left; }

.auth-help {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.auth-supporting-copy {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Footer */
.auth-site-footer {
    padding: 1.1rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.88rem;
    border-top: 1px solid var(--line);
    background: var(--surface);
}
