/* Signed-out pages of the agency area on alesteviaggi.it (login, code,
   password, registration, activation). Palette and fonts come from
   agency_area/base.html (--av-*), the same as the Aleste home. */

.ag-auth-page { background: var(--av-paper); }

.ag-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
}

/* ── Brand side ─────────────────────────────────────────────────────── */
.ag-auth-aside {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--av-night);
    isolation: isolate;
}
.ag-auth-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.ag-auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(160deg, rgba(12, 60, 99, .92) 0%, rgba(10, 79, 135, .80) 45%, rgba(10, 125, 142, .72) 100%);
}
.ag-auth-aside-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1rem 1.5rem;
}
.ag-auth-logo img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}
.ag-auth-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #bdeef5;
    margin-bottom: .35rem;
}
.ag-auth-headline {
    font-family: var(--av-display);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.15;
    color: #fff;
    margin: 0;
}
.ag-auth-points,
.ag-auth-steps,
.ag-auth-contact { display: none; }

.ag-auth-points {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    gap: 1.1rem;
    flex-direction: column;
}
.ag-auth-points li {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .88);
}
.ag-auth-points strong { color: #fff; font-weight: 600; }
.ag-auth-points .bi {
    flex: 0 0 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 1.1rem;
    color: #fff;
}

.ag-auth-steps {
    list-style: none;
    counter-reset: ag-step;
    padding: 0;
    margin: 1.75rem 0 0;
    flex-direction: column;
    gap: 1.1rem;
}
.ag-auth-steps li {
    counter-increment: ag-step;
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, .88);
    line-height: 1.45;
}
.ag-auth-steps li::before {
    content: counter(ag-step);
    flex: 0 0 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--av-blue-deep);
    font-family: var(--av-display);
    font-weight: 700;
}
.ag-auth-steps strong { display: block; color: #fff; font-weight: 600; }

.ag-auth-contact {
    flex-direction: column;
    gap: .3rem;
    font-size: .9rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .75);
}
.ag-auth-contact a { color: #fff; text-decoration: none; }
.ag-auth-contact a:hover { text-decoration: underline; }

/* ── Form side ──────────────────────────────────────────────────────── */
.ag-auth-main {
    display: flex;
    flex-direction: column;
    padding: 0 1rem 1.5rem;
}
.ag-auth-top {
    display: flex;
    justify-content: flex-end;
    padding: .9rem 0;
}
.ag-auth-back {
    font-size: .9rem;
    color: var(--av-ink-soft);
    text-decoration: none;
}
.ag-auth-back:hover { color: var(--av-blue); }
.ag-auth-panel {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}
.ag-auth--wide .ag-auth-panel { max-width: 760px; }
.ag-auth-foot {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    font-size: .8rem;
    color: var(--av-ink-soft);
}
.ag-auth-foot a { color: inherit; }

.ag-auth-title {
    font-family: var(--av-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--av-blue-deep);
    margin-bottom: .35rem;
}
.ag-auth-lead {
    color: var(--av-ink-soft);
    margin-bottom: 1.75rem;
}
.ag-auth-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--av-teal-soft);
    color: var(--av-teal-deep);
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
}
.ag-auth-panel .form-label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--av-ink);
    margin-bottom: .35rem;
}
.ag-auth-panel .form-control,
.ag-auth-panel .form-select {
    border-color: var(--av-line);
    border-radius: 10px;
    padding: .7rem .9rem;
    background-color: #fff;
}
.ag-auth-panel .form-control-lg { padding: .8rem 1rem; }
.ag-auth-panel .input-group .form-control { border-right: 0; }
.ag-auth-toggle {
    border: 1px solid var(--av-line);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #fff;
    color: var(--av-ink-soft);
    padding: 0 .9rem;
}
.ag-auth-toggle:hover { color: var(--av-blue); }
.ag-auth-panel .input-group:focus-within .form-control,
.ag-auth-panel .input-group:focus-within .ag-auth-toggle { border-color: var(--av-teal); }
.ag-auth-panel .input-group:focus-within { box-shadow: 0 0 0 .2rem rgba(17, 166, 187, .2); border-radius: 10px; }
.ag-auth-panel .input-group .form-control:focus { box-shadow: none; }
.ag-auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
}
.ag-auth-label-row a { font-size: .85rem; text-decoration: none; }
.ag-auth-submit {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
}
.ag-auth-alt {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--av-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    font-size: .92rem;
}
.ag-auth-alt span { color: var(--av-ink-soft); }
.ag-auth-alt a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.ag-auth-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: .92rem;
    text-decoration: none;
}
.ag-auth-panel .alert { border-radius: 12px; border: 0; }

/* Registration: numbered blocks */
.ag-reg-block {
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: 14px;
    padding: 1.25rem 1.1rem 1.4rem;
    margin-bottom: 1rem;
}
.ag-reg-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.ag-reg-num {
    flex: 0 0 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--av-blue);
    color: #fff;
    font-family: var(--av-display);
    font-weight: 700;
    font-size: .95rem;
}
.ag-reg-head h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
.ag-reg-head p {
    margin: 0;
    font-size: .85rem;
    color: var(--av-ink-soft);
}
.ag-req { color: #c0392b; font-weight: 700; margin-left: .1rem; }
.ag-reg-consent {
    background: var(--av-teal-soft);
    border-radius: 12px;
    padding: .9rem 1rem .9rem 2.6rem;
    margin: 1.25rem 0;
    font-size: .92rem;
}
.ag-reg-note { font-size: .82rem; color: var(--av-ink-soft); margin: .25rem 0 0; }

/* ── Tablet / desktop ───────────────────────────────────────────────── */
@media (min-width: 992px) {
    .ag-auth { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
    .ag-auth--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
    .ag-auth-aside {
        position: sticky;
        top: 0;
        height: 100vh;
    }
    .ag-auth-aside-inner {
        height: 100%;
        padding: 2.5rem 3rem;
        gap: 0;
        justify-content: space-between;
    }
    .ag-auth-logo img { height: 56px; }
    .ag-auth-pitch { max-width: 30rem; }
    .ag-auth-headline { font-size: 2.35rem; }
    .ag-auth-points,
    .ag-auth-steps,
    .ag-auth-contact { display: flex; }
    .ag-auth-main { padding: 0 3rem 2rem; }
    .ag-auth-top { padding: 1.5rem 0 0; }
    .ag-auth-panel { margin: auto; padding: 2rem 0; }
    .ag-reg-block { padding: 1.5rem 1.6rem 1.7rem; }
}

@media (min-width: 1400px) {
    .ag-auth-aside-inner { padding: 3rem 4.5rem; }
    .ag-auth-headline { font-size: 2.75rem; }
}
