/* ==========================================================================
   MadScientist — login and signup spread
   Shared layout for the two auth pages; colors and components come from
   neoeditorial.css.
   ========================================================================== */

body.auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-main {
    flex: 1;
    padding: clamp(1.75rem, 4vw, 3.5rem) 0 1rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 29rem);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    max-width: 68rem;
    margin-inline: auto;
}

/* Editorial column ------------------------------------------------------- */

.auth-editorial {
    min-width: 0;
    padding-right: clamp(1.5rem, 4vw, 3rem);
    border-right: 1px solid var(--ne-rule-light);
}

.auth-editorial .ne-eyebrow {
    letter-spacing: 0.08em;
}

.auth-statement {
    max-width: 12ch;
    margin: 0.7rem 0 0.9rem;
    color: var(--ne-ink);
    font-family: var(--ne-font-display);
    font-size: clamp(2.7rem, 4.8vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.96;
    overflow-wrap: anywhere;
}

.auth-copy {
    max-width: 44ch;
    color: var(--ne-ink-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-principles {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ne-rule);
}

.auth-principles li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.15rem 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--ne-rule-light);
}

.auth-principles__index {
    grid-row: span 2;
    color: var(--ne-ink-soft);
    font-family: var(--ne-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.auth-principles__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.auth-principles__text {
    color: var(--ne-ink-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Form panel ------------------------------------------------------------- */

.auth-panel {
    min-width: 0;
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.auth-title {
    margin: 0.55rem 0 0.65rem;
    color: var(--ne-ink);
    font-family: var(--ne-font-display);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.98;
    overflow-wrap: anywhere;
}

.auth-lede {
    color: var(--ne-ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.35rem;
}

.auth-form .ne-input {
    min-height: 2.75rem;
}

.auth-form .ne-field {
    gap: 0.4rem;
}

.auth-form .ne-hint {
    margin-top: -0.05rem;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.auth-actions .ne-button {
    flex: 1;
}

.ne-button--ink {
    background: var(--ne-ink);
    border-color: var(--ne-ink);
    color: var(--ne-paper);
}

.ne-button--ink:hover {
    background: #333333;
    color: var(--ne-paper);
}

.auth-switch {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ne-rule-light);
    color: var(--ne-ink-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.auth-switch a {
    color: var(--ne-ink);
    text-decoration: underline;
    text-decoration-color: var(--ne-accent);
    text-underline-offset: 3px;
}

.auth-switch a:hover {
    text-decoration-color: var(--ne-ink);
}

.auth-message {
    min-height: 1.25em;
    margin: 0;
}

.auth-footer {
    margin-top: 1rem;
}

.auth-footer a {
    color: var(--ne-ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-footer a:hover {
    color: var(--ne-ink);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1000px) {
    .auth-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        max-width: 34rem;
    }

    .auth-panel {
        order: 1;
    }

    .auth-editorial {
        order: 2;
        padding-top: 1.5rem;
        padding-right: 0;
        border-top: 1px solid var(--ne-rule-light);
        border-right: 0;
    }

    .auth-statement {
        max-width: 14ch;
        font-size: clamp(2.2rem, 6.5vw, 3.2rem);
    }
}

@media (max-width: 720px) {
    .auth-editorial {
        display: none;
    }

    .auth-grid {
        max-width: 30rem;
    }

    .auth-main {
        padding-top: 1.5rem;
    }
}

@media (max-width: 600px) {
    .auth-main {
        padding-top: 1.25rem;
    }

    .auth-panel {
        padding: 1rem;
    }

    .auth-title {
        font-size: 2rem;
    }

    .auth-actions {
        flex-direction: column;
    }

    .auth-actions .ne-button {
        width: 100%;
    }
}
