/* Composición del acceso y la recuperación de contraseña. Campos, botones y avisos son compartidos. */
.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 48px;
    background: var(--primary-soft);
}

.auth-brand-panel .ui-brand {
    align-self: flex-start;
    color: var(--text-heading);
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 460px;
}

.auth-brand-text p {
    margin: 0;
    color: var(--text-heading-soft);
    font-size: .88rem;
    line-height: 1.55;
}

.design-shell .auth-brand-text .auth-tagline {
    color: var(--text-heading);
    font-family: var(--ui-font-heading);
    font-size: clamp(2.2rem, 3.6vw, 3.1rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
    text-wrap: pretty;
}

.auth-brand-panel small {
    color: #6b7697;
    font-size: .74rem;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-form {
    --ui-control-height: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 360px;
}

.auth-form-heading h1 {
    margin: 0;
    color: var(--text-heading);
    font-family: var(--ui-font-heading);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.auth-form-heading p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .ui-input {
    font-size: .88rem;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.auth-actions .ui-button {
    width: 100%;
    min-height: 42px;
    font-size: .86rem;
}

.auth-footnote {
    margin: 0;
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .auth-brand-panel {
        gap: 18px;
        padding: 22px 20px 26px;
    }

    .design-shell .auth-brand-text .auth-tagline {
        font-size: 1.75rem;
    }

    .auth-brand-panel small {
        display: none;
    }

    .auth-form-panel {
        align-items: flex-start;
        padding: 32px 20px 40px;
    }
}
