/*
    auth.css — the sign-in screen, which runs on _AuthLayout and so shares only
    the tokens, base, fonts, icons, buttons and forms.

    Two panes on a wide screen: the association's side on the brand green, the
    form on the surface. Below the tablet breakpoint the brand side steps aside.
*/

.auth {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* ---- Brand side ---- */

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-10) var(--space-12);
    background:
        radial-gradient(900px 520px at 85% -10%, rgba(242, 241, 123, .16), transparent 62%),
        linear-gradient(160deg, var(--green-700), var(--green-900) 70%, var(--green-950));
    color: #E8EFE4;
    overflow: hidden;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.auth-brand .brand-name {
    color: #FFFFFF;
}

.auth-brand .brand-tag {
    color: rgba(232, 239, 228, .62);
}

.auth-lead {
    margin-block: auto;
}

.auth-lead .eyebrow {
    color: var(--accent-bright);
}

.auth-lead h1 {
    margin: var(--space-3) 0 var(--space-4);
    color: #FFFFFF;
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    line-height: 1.35;
}

.auth-lead h1 em {
    display: block;
    color: var(--accent-bright);
    font-style: normal;
}

.auth-lead p {
    max-width: 44ch;
    color: rgba(232, 239, 228, .78);
    font-size: var(--text-md);
}

.auth-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    list-style: none;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: rgba(232, 239, 228, .86);
    font-size: var(--text-base);
}

.auth-points .icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: rgba(242, 241, 123, .16);
    color: var(--accent-bright);
    font-size: .95rem;
}

.auth-aside-foot {
    color: rgba(232, 239, 228, .5);
    font-size: var(--text-xs);
}

/* ---- Form side ---- */

.auth-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-6);
    background: var(--surface);
}

.auth-lang {
    position: absolute;
    inset-block-start: var(--space-5);
    inset-inline-end: var(--space-6);
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-head {
    margin-block-end: var(--space-6);
}

.auth-head h2 {
    margin: var(--space-2) 0 var(--space-1);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
}

.auth-head p {
    margin: 0;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.auth-form .btn {
    margin-block-start: var(--space-2);
    padding-block: 10px;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: var(--text-sm);
}

.auth-alert .icon {
    flex: none;
    font-size: 1.2rem;
}

.auth-foot {
    margin-block-start: var(--space-8);
    color: var(--text-subtle);
    font-size: var(--text-xs);
    text-align: center;
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        gap: var(--space-5);
        padding: var(--space-6) var(--space-5);
    }

    .auth-lead {
        margin-block: 0;
    }

    .auth-lead h1 {
        font-size: var(--text-2xl);
    }

    .auth-points {
        display: none;
    }

    .auth-panel {
        padding-block: var(--space-8);
    }
}

@media (max-width: 575.98px) {
    .auth-aside {
        padding: var(--space-5) var(--space-4);
    }

    .auth-panel {
        padding-inline: var(--space-4);
    }
}
