/**
 *  SIGN-UP / LOGIN / E-MAIL VERIFICATION pages. Every class starts with au-.
 *  Same building blocks as the account pages (cards, form-label + form-control, btn-primary, the .acc-strength bar)
 *  and the same violet-to-cyan gradient as the landing page and the avatars.
 */

.au {
    position: relative;
    padding: 2rem 0 3rem;
    overflow-x: clip;
}

.au-card {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 24px 70px rgba(124, 58, 237, .14), 0 2px 8px rgba(0, 0, 0, .18);
}

/* ---------- heading ---------- */

.au-head { text-align: center; margin-bottom: 1.5rem; }

.au-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    box-shadow: 0 10px 28px rgba(124, 58, 237, .3);
}

.au-icon.is-ok   { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 10px 28px rgba(16, 185, 129, .28); }
.au-icon.is-bad  { background: linear-gradient(135deg, #f43f5e, #f59e0b); box-shadow: 0 10px 28px rgba(244, 63, 94, .26); }

.au-title { font-weight: 800; margin-bottom: .35rem; }
.au-sub   { color: var(--bs-secondary-color, #94a3b8); margin-bottom: 0; }

/* ---------- steps: 1 sign up, 2 e-mail verification, 3 log in ---------- */

.au-steps {
    display: flex;
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.au-step {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: .75rem;
    line-height: 1.2;
    color: var(--bs-secondary-color, #94a3b8);
}

/* the line towards the next step */
.au-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: var(--bs-border-color, rgba(255, 255, 255, .12));
}

.au-dot {
    width: 32px;
    height: 32px;
    margin: 0 auto .45rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    border: 2px solid var(--bs-border-color, rgba(255, 255, 255, .15));
    background: var(--bs-card-bg, transparent);
    transition: background .25s, border-color .25s, color .25s;
}

.au-dot .mdi { display: none; font-size: 1rem; }

.au-step.is-active { color: var(--bs-body-color, #fff); font-weight: 600; }
.au-step.is-active .au-dot { border-color: transparent; color: #fff; background: linear-gradient(135deg, #7c3aed, #06b6d4); }

.au-step.is-done .au-dot { border-color: transparent; color: #fff; background: #10b981; }
.au-step.is-done .au-dot .au-num { display: none; }
.au-step.is-done .au-dot .mdi { display: inline; }
.au-step.is-done::after { background: #10b981; }

/* ---------- form ---------- */

.au-form .form-label { font-weight: 600; font-size: .85rem; }

.au-pw .form-control { border-right: 0; }

.au-pw .au-pw-toggle {
    border: 1px solid var(--bs-border-color, rgba(255, 255, 255, .15));
    border-left: 0;
    background: var(--bs-body-bg, transparent);
    color: var(--bs-secondary-color, #94a3b8);
    padding: 0 .9rem;
}

.au-pw .au-pw-toggle:hover { color: var(--bs-body-color, #fff); }

.au-pw:focus-within .form-control,
.au-pw:focus-within .au-pw-toggle { border-color: var(--bs-primary, #7c3aed); }

.au-pw .form-control.is-invalid ~ .au-pw-toggle { border-color: var(--bs-danger, #dc3545); }

/* the honeypot of the sign-up form: out of sight for people, bots fill it in */
.au-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.au-consent { font-size: .85rem; }
.au-consent a { text-decoration: underline; }

.au-alert { font-size: .875rem; }

.au-alert .btn-link { padding: 0; vertical-align: baseline; font-size: inherit; }

.au-submit { font-weight: 700; padding-top: .65rem; padding-bottom: .65rem; }

/* Turnstile keeps its own size: centre it in the card */
.au-captcha { display: flex; justify-content: center; min-height: 0; }

/* ---------- secure code ---------- */

.au-code {
    max-width: 14rem;
    margin: 0 auto;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .5em;
    padding-left: 1.1em;
}

/* ---------- panels (form -> "check your inbox") ---------- */

.au-panel[hidden] { display: none; }

.au-mail {
    word-break: break-word;
}

.au-foot {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bs-border-color, rgba(255, 255, 255, .08));
    text-align: center;
    font-size: .9rem;
    color: var(--bs-secondary-color, #94a3b8);
}

.au-foot a { font-weight: 600; }

@media (max-width: 575.98px) {
    .au { padding-top: .5rem; }
    .au-card .card-body { padding: 1.5rem 1.25rem !important; }
    .au-icon { width: 52px; height: 52px; font-size: 1.5rem; }
    .au-code { font-size: 1.4rem; }
}
