/* Fit People Club — Login / Register.
   Same palette and typography as the Home hero (landing.css, dark version). */

.auth {
    --auth-bg: #121211;
    --auth-ink: #ECE8DF;
    --auth-muted: #A39F96;
    --auth-faint: #8F8B83;
    --auth-accent: #C8B79A;
    --auth-field: #1A1A19;
    --auth-field-line: #2E2D2A;
    --auth-error: #E0A190;

    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: 44px 64px 56px;
    display: flex;
    flex-direction: column;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: 'Inter', system-ui, sans-serif;
}

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

.auth a { color: var(--auth-ink); }
.auth a:hover { color: #FFFFFF; }

/* Header: ← Home · brand · link to the other form */
.auth__header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth__back { justify-self: start; padding: 12px 0; color: var(--auth-muted) !important; text-decoration: none; }
.auth__back:hover { color: var(--auth-ink) !important; }

.auth__brand {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: 22px;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
}

.auth__switch {
    justify-self: end;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--auth-accent);
}

/* Body */
.auth__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0 0;
}

.auth__form {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth__form--wide { max-width: 560px; }

.auth__eyebrow {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--auth-accent);
}

.auth__title {
    margin: 0 0 4px;
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 300;
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -0.02em;
}

.auth__title em { font-style: italic; color: var(--auth-accent); }

.auth__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.auth__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.auth__label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth__input {
    width: 100%;
    background: var(--auth-field);
    border: 1px solid var(--auth-field-line);
    border-radius: 0;
    padding: 14px 16px;
    font: inherit;
    font-size: 16px;
    color: var(--auth-ink);
    outline: none;
    transition: border-color .2s ease;
}

.auth__input::placeholder { color: #6B6860; }
.auth__input:focus { border-color: var(--auth-accent); }

.auth__help {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--auth-faint);
}

.auth__check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth__check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-accent);
}

.auth__submit {
    width: 100%;
    margin-top: 4px;
    background: var(--auth-ink);
    color: var(--auth-bg);
    border: 0;
    border-radius: 0;
    padding: 18px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s ease;
}

.auth__submit:hover { opacity: .88; }

/* Errors: the general notice and the <ul> lists rendered by form_errors() */
.auth__alert {
    padding: 14px 16px;
    border: 1px solid rgba(224, 161, 144, .4);
    color: var(--auth-error);
    font-size: 14px;
    line-height: 1.5;
}

.auth__field ul { list-style: none; margin: 0; padding: 0; }
.auth__field li { font-size: 13px; color: var(--auth-error); }
.auth__field:has(ul) .auth__input { border-color: rgba(224, 161, 144, .6); }

@media (max-width: 640px) {
    .auth { padding: 24px 24px 40px; }
    .auth__header { grid-template-columns: auto 1fr auto; gap: 16px; }
    .auth__brand { justify-self: center; font-size: 19px; }
    .auth__grid { grid-template-columns: 1fr; }
}
