/* Authentication: one responsive form system, no late overrides. */
.auth-page {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100dvh;
}
.auth-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}
.auth-story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 4rem);
    background: var(--sage);
}
.auth-story .brand {
    padding: 0;
    margin: 0;
}
.auth-story-copy {
    margin-block: auto;
}
.auth-story h1 {
    max-width: none;
    font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.055em;
    color: var(--sage-ink);
}
.auth-story p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--sage-ink);
    max-width: 26rem;
}
.auth-story-art {
    width: 5.5rem;
    height: 5.5rem;
    color: var(--sage-ink);
    margin-bottom: 2rem;
}
.auth-story small {
    color: var(--sage-ink);
    font-size: 0.8125rem;
}
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 4rem clamp(1.25rem, 4vw, 3rem) 2rem;
}
.auth-form {
    width: 100%;
    max-width: 30rem;
    min-width: 0;
}
.auth-form h2 {
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.045em;
    margin: 0 0 0.5rem;
}
.auth-form > p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 1.5rem;
}
.auth-form form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
}
.auth-form .field {
    width: 100%;
    min-width: 0;
    gap: 0.375rem;
    margin: 0;
}
.auth-form .field label {
    font-size: 0.875rem;
    font-weight: 600;
}
.auth-form .field input {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}
.auth-form .field small,
.auth-form .inline-note,
.auth-form .legal-links {
    font-size: 0.8125rem;
    line-height: 1.6;
}
.auth-form .button {
    width: 100%;
    min-height: 2.75rem;
}
.auth-switch {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
    margin: 1.25rem 0;
}
.auth-switch a {
    color: var(--accent);
    font-weight: 600;
}
.auth-form .legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
}
.registration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.registration-grid .wide {
    grid-column: 1 / -1;
}
.check-field {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}
.check-field input {
    flex-shrink: 0;
    margin-top: 0.25rem;
    accent-color: var(--ink);
}
.check-field a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.password-control {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}
.password-control input,
.auth-form .password-control input {
    padding-right: 3rem;
}
.password-toggle {
    position: absolute;
    right: 0.125rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.375rem;
    background: var(--surface);
    color: var(--muted);
}
.password-toggle:hover {
    background: var(--surface-soft);
    color: var(--ink);
}
@media (max-width: 60rem) {
    .auth-page {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
    }
    .auth-story {
        padding: 1.25rem;
        padding-right: 5rem;
    }
    .auth-story .brand {
        max-width: 10rem;
    }
    .auth-story-copy,
    .auth-story small {
        display: none;
    }
    .auth-main {
        padding: 2rem 1.25rem;
    }
}
@media (max-width: 30rem) {
    .registration-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
