/* Auth pages — loaded separately with filemtime cache bust (login, 2FA, registration) */

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

body.landing--auth .landing-footer {
    margin-top: auto;
}

.auth-page {
    flex: 0 0 auto;
    padding: 2.5rem 0 3rem;
}

@media (min-width: 768px) {
    .auth-page {
        padding: 3rem 0 3.5rem;
    }
}

.auth-page__status {
    max-width: 42rem;
    margin: 0 auto 1.25rem;
    padding: 0.875rem 1.25rem;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: var(--radius-sm);
    color: #2e7d32;
    font-size: 0.9375rem;
    text-align: center;
}

.auth-card {
    max-width: 42rem;
    margin: 0 auto;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.auth-card--wide {
    max-width: 32rem;
}

.auth-card--split {
    max-width: 56rem;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .auth-card--split {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.auth-card__main {
    padding: 2rem 1.75rem;
}

@media (min-width: 768px) {
    .auth-card__main {
        padding: 2.5rem 2.5rem;
    }
}

.auth-card__aside {
    padding: 2rem 1.75rem;
    background: var(--color-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .auth-card__aside {
        padding: 2.5rem 2rem;
        text-align: left;
    }
}

.auth-card__aside h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.auth-card__aside p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.auth-card__aside .btn--accent {
    width: 100%;
}

@media (min-width: 768px) {
    .auth-card__aside .btn--accent {
        width: auto;
    }
}

.auth-card__notice {
    max-width: 42rem;
    margin: 0 auto 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
}

.auth-card__notice a {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-form__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.35rem;
}

.auth-form__lead {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
}

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

.auth-field__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.35rem;
}

.auth-field__input,
.auth-field__select {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}

.auth-field__input:focus,
.auth-field__select:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(11, 18, 32, 0.08);
}

.auth-field__input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-field__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B6560'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.auth-errors {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 1.25rem;
    color: #c62828;
    font-size: 0.875rem;
}

.auth-errors li + li {
    margin-top: 0.25rem;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 1.5rem;
}

.auth-actions--end {
    justify-content: flex-end;
}

.auth-actions__start,
.auth-actions__end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.auth-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.auth-link:hover {
    color: var(--color-navy);
}

.auth-link--toggle {
    color: var(--color-navy);
    text-decoration: none;
}

.auth-link--toggle:hover {
    text-decoration: underline;
}

.auth-form .cf-turnstile {
    margin-bottom: 1rem;
}

.auth-form__body p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
}

.auth-form__body p + p {
    margin-top: 0.75rem;
}

.auth-form__body a {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
