/**
 * The rest of the auth flow: register, confirm, forgot, reset.
 *
 * These pages share one shell of .auth-* classes, so they are brought onto the login
 * page's design from here rather than by rewriting four views. Purely a reskin: no
 * markup changes, and nothing to keep in step between the pages.
 *
 * The login page has its own stylesheet and no longer uses .auth-* at all, so none of
 * this touches it.
 */

/* One card, two halves - the same shape as the login page. */
.auth-page {
    display: grid;
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    overflow: hidden;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 26px 60px rgba(11, 31, 24, 0.12), 0 2px 6px rgba(11, 31, 24, 0.04);
}

@media (min-width: 60rem) {
    .auth-page { grid-template-columns: 1.08fr 1fr; padding: 0; margin-top: 2.5rem; }
}

/* The drawn half: the same mint, without an illustration of its own. */
.auth-visual {
    display: flex;
    align-items: center;
    padding: 2.25rem;
    border-radius: 0;
    background: linear-gradient(155deg, #edf7f2 0%, #dcefe6 52%, #cde7db 100%);
    color: var(--hub-ink);
    box-shadow: none;
}

/* One panel, not a card inside a card: the register page drew a second surface inside
   the mint, which read as a box sitting in a box. The panel's own padding is enough. */
.auth-visual-inner {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--hub-ink);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-visual-inner h1 {
    margin: 0.9rem 0 0;
    color: var(--hub-ink);
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.auth-visual-inner p {
    margin: 0.7rem 0 0;
    color: #3f574c;
    font-size: 0.98rem;
    line-height: 1.65;
}

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

.auth-benefits li {
    position: relative;
    padding-left: 1.6rem;
    color: #33503f;
    font-size: 0.93rem;
}

.auth-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--hub-amber);
}

/* The form half. */
.auth-card {
    justify-content: center;
    padding: 2.5rem 2.25rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.auth-header .eyebrow {
    margin: 0;
    color: var(--hub-amber);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-header h2 {
    margin: 0.3rem 0 1.4rem;
    color: var(--hub-ink);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.auth-form { display: grid; gap: 1.1rem; }
.auth-form label { color: var(--hub-ink); font-size: 0.82rem; font-weight: 800; }

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.9rem;
    background: #f4f8f6;
    color: var(--hub-ink);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form input::placeholder { color: #9aada4; }

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    background: #fff;
    border-color: var(--hub-ink);
    box-shadow: 0 0 0 4px rgba(11, 31, 24, 0.08);
}

.auth-form .helper-text,
.auth-form .field-hint { color: #7b8a83; font-size: 0.8rem; font-weight: 500; }

.auth-switch {
    margin-top: 1.4rem;
    color: #6b7f76;
    font-size: 0.88rem;
    text-align: center;
}

.auth-switch a { color: var(--hub-ink); font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* Notes read as part of the card rather than as browser warnings. */
.auth-card .alert {
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 0.9rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-card .alert-error,
.auth-card .alert-danger { background: #fdf1ee; color: #8f3520; }
.auth-card .alert-info,
.auth-card .alert-success { background: #ecf8f2; color: #0f7a55; }

/* Phones: the drawn half is dropped, exactly as on the login page. */
@media (max-width: 47.99rem) {
    .auth-page { padding: 1.25rem 0 2.5rem; border-radius: 1.25rem; }
    .auth-visual { display: none; }
    .auth-card { padding: 1.9rem 1.5rem; }
}
