html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================================================================
   Account auth pages (Login / Register / ForgotPassword)
   Matches the homepage indigo → violet → pink palette.
   ========================================================================= */

.account-auth {
    --aa-ink: #0f172a;
    --aa-ink-2: #334155;
    --aa-mute: #64748b;
    --aa-line: #e2e8f0;
    --aa-brand: #4f46e5;
    --aa-brand-2: #7c3aed;
    --aa-brand-soft: #eef2ff;
    --aa-accent: #ec4899;
    --aa-success: #10b981;

    background: linear-gradient(180deg, #f5f3ff 0%, #faf7ff 55%, #ffffff 100%);
    border-bottom: 1px solid var(--aa-line);
    color: var(--aa-ink);
    overflow: hidden;
    padding: 5rem 0;
    position: relative;
}

.account-auth::before,
.account-auth::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
}

.account-auth::before {
    width: 380px;
    height: 380px;
    top: -100px;
    left: -120px;
    background: radial-gradient(circle, rgba(124, 58, 237, .25), rgba(124, 58, 237, 0) 70%);
}

.account-auth::after {
    width: 320px;
    height: 320px;
    bottom: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(236, 72, 153, .22), rgba(236, 72, 153, 0) 70%);
}

.account-auth .container {
    position: relative;
    z-index: 1;
}

.account-auth__grid {
    align-items: stretch;
    display: grid;
    gap: 1.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
}

.account-auth__context,
.account-auth__form-panel {
    border-radius: 24px;
}

/* ---- CONTEXT (left dark gradient panel) -------------------------------- */
.account-auth__context {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #6d28d9 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 38rem;
    overflow: hidden;
    padding: 2.5rem;
    position: relative;
}

.account-auth__context::before,
.account-auth__context::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.account-auth__context::before {
    width: 320px;
    height: 320px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(236, 72, 153, .55), transparent 70%);
}

.account-auth__context::after {
    width: 280px;
    height: 280px;
    bottom: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(99, 102, 241, .55), transparent 70%);
}

.account-auth__context > * {
    position: relative;
    z-index: 1;
}

.account-auth__brand {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    gap: .85rem;
    line-height: 1.2;
    text-decoration: none;
    width: fit-content;
}

.account-auth__brand:hover {
    color: #ffffff;
}

.account-auth__brand img {
    background: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
    border-radius: 14px;
    height: 2.875rem;
    object-fit: contain;
    padding: .35rem;
    width: 2.875rem;
}

.account-auth__copy {
    max-width: 38rem;
    padding: 2.5rem 0;
}

.account-auth__eyebrow {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    gap: .55rem;
    letter-spacing: .14em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.account-auth__eyebrow::before {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
    content: "";
    display: inline-block;
    height: 8px;
    width: 8px;
}

/* Form-header eyebrow is on a light card, so use the brand colour scheme */
.account-auth__form-header .account-auth__eyebrow {
    color: var(--aa-brand);
}

.account-auth__form-header .account-auth__eyebrow::before {
    background: var(--aa-brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .18);
}

.account-auth__copy h1,
.account-auth__form-header h2 {
    color: inherit;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.08;
    margin: 0;
}

.account-auth__copy h1 {
    font-size: 3rem;
    max-width: 42rem;
}

.account-auth__accent {
    background: linear-gradient(120deg, #f9a8d4 0%, #c4b5fd 50%, #93c5fd 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.account-auth__copy p,
.account-auth__form-header p {
    line-height: 1.7;
    margin: 1rem 0 0;
}

.account-auth__copy p {
    color: rgba(241, 245, 249, .85);
    font-size: 1.08rem;
    max-width: 39rem;
}

/* ---- Preview / queue card --------------------------------------------- */
.account-auth__preview {
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    display: grid;
    gap: .65rem;
    max-width: 38rem;
    padding: 1.25rem;
}

.account-auth__preview-top,
.account-auth__preview-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
}

.account-auth__preview-top {
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    color: #ffffff;
    font-weight: 800;
    padding-bottom: .85rem;
}

.account-auth__preview-row {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    padding: .85rem 1rem;
    position: relative;
    transition: background .2s ease, transform .2s ease;
}

.account-auth__preview-row::before {
    background: linear-gradient(180deg, #f472b6, #c4b5fd);
    border-radius: 4px;
    bottom: 10px;
    content: "";
    left: 0;
    position: absolute;
    top: 10px;
    width: 3px;
}

.account-auth__preview-row:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateX(3px);
}

.account-auth__preview span,
.account-auth__preview strong {
    overflow-wrap: anywhere;
}

.account-auth__preview span {
    color: rgba(241, 245, 249, .9);
}

.account-auth__preview strong {
    color: #fde68a;
    font-size: .88rem;
    text-align: right;
}

.account-auth__preview-top strong {
    align-items: center;
    background: rgba(16, 185, 129, .18);
    border-radius: 999px;
    color: #6ee7b7;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    gap: .4rem;
    letter-spacing: .1em;
    padding: .3rem .7rem;
    text-transform: uppercase;
}

.account-auth__preview-top strong::before {
    animation: aa-pulse 1.6s infinite;
    background: #10b981;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 7px;
    width: 7px;
}

@keyframes aa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .65); }
    50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ---- Form panel ------------------------------------------------------- */
.account-auth__form-panel {
    align-self: center;
    background: #ffffff;
    border: 1px solid var(--aa-line);
    box-shadow: 0 30px 80px -30px rgba(79, 70, 229, .35),
                0 8px 16px -6px rgba(15, 23, 42, .08);
    padding: 2.25rem;
    width: 100%;
}

.account-auth__form-header {
    margin-bottom: 1.75rem;
}

.account-auth__form-header h2 {
    color: var(--aa-ink);
    font-size: 2rem;
}

.account-auth__form-header p {
    color: var(--aa-mute);
}

.account-auth__status .alert {
    border: 0;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.account-auth__status .alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fff1f2);
    color: #b91c1c;
}

.account-auth__validation {
    margin-bottom: 1rem;
}

.account-auth__field {
    margin-bottom: 1rem;
    position: relative;
}

.account-auth__field .form-control {
    background: #f8fafc;
    border: 1.5px solid var(--aa-line);
    border-radius: 14px;
    color: var(--aa-ink);
    min-height: 3.6rem;
    padding: 1rem 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.account-auth__field .form-control:focus {
    background: #ffffff;
    border-color: var(--aa-brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .15);
}

.account-auth__field .form-floating > label {
    color: var(--aa-mute);
    font-weight: 500;
    padding: 1rem;
}

.account-auth__field .form-floating > .form-control:focus ~ label,
.account-auth__field .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--aa-brand);
    font-weight: 700;
}

.account-auth__options {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: space-between;
    margin: .35rem 0 1.25rem;
}

.account-auth__checkbox {
    align-items: center;
    color: var(--aa-ink-2);
    display: inline-flex;
    font-weight: 600;
    gap: .55rem;
    line-height: 1.3;
}

.account-auth__checkbox .form-check-input {
    border-color: #cbd5e1;
    border-radius: 6px;
    height: 1.1rem;
    margin: 0;
    width: 1.1rem;
}

.account-auth__checkbox .form-check-input:checked {
    background-color: var(--aa-brand);
    border-color: var(--aa-brand);
}

.account-auth__checkbox .form-check-input:focus {
    border-color: var(--aa-brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .18);
}

.account-auth a {
    color: var(--aa-brand);
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.account-auth a:hover {
    color: var(--aa-brand-2);
}

/* Override Bootstrap's .btn-primary inside the auth shell so the gradient
   wins without needing to edit every page's markup. */
.account-auth__primary,
.account-auth .btn-primary.account-auth__primary {
    align-items: center;
    background: linear-gradient(135deg, var(--aa-brand) 0%, var(--aa-brand-2) 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .55);
    color: #ffffff;
    display: inline-flex;
    font-weight: 700;
    gap: .35rem;
    justify-content: center;
    min-height: 3.25rem;
    padding: .85rem 1.55rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    width: 100%;
}

.account-auth__primary:hover,
.account-auth .btn-primary.account-auth__primary:hover {
    background: linear-gradient(135deg, var(--aa-brand-2) 0%, var(--aa-brand) 100%);
    box-shadow: 0 18px 36px -12px rgba(79, 70, 229, .65);
    color: #ffffff;
    transform: translateY(-2px);
}

.account-auth__primary i,
.account-auth .btn-primary.account-auth__primary i {
    font-size: 1.3em;
    transition: transform .2s ease;
}

.account-auth__primary:hover i,
.account-auth .btn-primary.account-auth__primary:hover i {
    transform: translateX(4px);
}

.account-auth__secondary,
.account-auth .btn-outline-secondary.account-auth__secondary {
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--aa-brand);
    border-radius: 999px;
    color: var(--aa-brand);
    display: inline-flex;
    font-weight: 700;
    gap: .35rem;
    justify-content: center;
    min-height: 3.25rem;
    padding: .8rem 1.45rem;
    transition: background .2s ease, color .2s ease;
    width: 100%;
}

.account-auth__secondary:hover,
.account-auth .btn-outline-secondary.account-auth__secondary:hover {
    background: var(--aa-brand-soft);
    color: var(--aa-brand);
}

.account-auth__links {
    border-top: 1px solid var(--aa-line);
    display: flex;
    flex-wrap: wrap;
    gap: .85rem 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

/* ---- Notice list (used by Register) ----------------------------------- */
.account-auth__notice-list {
    display: grid;
    gap: .85rem;
    margin: 1.5rem 0;
}

.account-auth__notice-list > div {
    background: linear-gradient(135deg, #faf5ff, #eef2ff);
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.account-auth__notice-list > div::before {
    background: linear-gradient(180deg, var(--aa-brand), var(--aa-brand-2));
    border-radius: 4px;
    bottom: 12px;
    content: "";
    left: 0;
    position: absolute;
    top: 12px;
    width: 4px;
}

.account-auth__notice-list > div:hover {
    box-shadow: 0 15px 30px -15px rgba(79, 70, 229, .25);
    transform: translateX(3px);
}

.account-auth__notice-list strong,
.account-auth__notice-list span {
    display: block;
}

.account-auth__notice-list strong {
    color: var(--aa-ink);
    font-size: 1rem;
    margin-left: .35rem;
}

.account-auth__notice-list span {
    color: var(--aa-ink-2);
    line-height: 1.55;
    margin: .3rem 0 0 .35rem;
}

.account-auth__actions {
    display: grid;
    gap: .85rem;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 991.98px) {
    .account-auth {
        padding: 3rem 0;
    }

    .account-auth__grid {
        grid-template-columns: 1fr;
    }

    .account-auth__context {
        min-height: auto;
        padding: 2rem;
    }

    .account-auth__copy {
        padding: 2.25rem 0;
    }

    .account-auth__copy h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 575.98px) {
    .account-auth {
        padding: 2rem 0;
    }

    .account-auth__context,
    .account-auth__form-panel {
        border-radius: 18px;
        padding: 1.5rem;
    }

    .account-auth__copy h1 {
        font-size: 2rem;
    }

    .account-auth__form-header h2 {
        font-size: 1.6rem;
    }

    .account-auth__preview-top,
    .account-auth__preview-row,
    .account-auth__options {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-auth__preview strong {
        text-align: left;
    }

    .account-auth__solo {
        border-radius: 18px;
        padding: 2rem 1.5rem;
    }

    .account-auth__solo h1,
    .account-auth__solo h2 {
        font-size: 1.6rem;
    }

    .account-auth__solo-icon {
        font-size: 2rem;
        height: 68px;
        width: 68px;
    }

    .account-auth__solo-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .account-auth__solo-btn,
    .account-auth__solo-btn-outline {
        justify-content: center;
        width: 100%;
    }
}

/* ----- Solo (single-column centered) variant -------------------------- */
.account-auth--solo {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 8rem);
}

.account-auth--solo .container {
    width: 100%;
}

.account-auth__solo {
    background: #ffffff;
    border: 1px solid var(--aa-line);
    border-radius: 24px;
    box-shadow: 0 30px 80px -30px rgba(79, 70, 229, .35),
                0 8px 16px -6px rgba(15, 23, 42, .08);
    margin: 0 auto;
    max-width: 34rem;
    padding: 3rem 2.5rem;
    text-align: center;
}

.account-auth__solo-icon {
    align-items: center;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 2.5rem;
    height: 84px;
    justify-content: center;
    margin: 0 auto 1.5rem;
    width: 84px;
    animation: aa-pop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes aa-pop {
    0%   { opacity: 0; transform: scale(.4); }
    100% { opacity: 1; transform: scale(1); }
}

.account-auth__solo-icon--success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 20px 40px -15px rgba(16, 185, 129, .55);
}

.account-auth__solo-icon--info {
    background: linear-gradient(135deg, var(--aa-brand), var(--aa-brand-2));
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, .55);
}

.account-auth__solo-icon--warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 20px 40px -15px rgba(217, 119, 6, .55);
}

.account-auth__solo-icon--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 20px 40px -15px rgba(220, 38, 38, .55);
}

.account-auth__solo .account-auth__eyebrow {
    color: var(--aa-brand);
    justify-content: center;
}

.account-auth__solo .account-auth__eyebrow::before {
    background: var(--aa-brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .18);
}

.account-auth__solo h1,
.account-auth__solo h2 {
    color: var(--aa-ink);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 .85rem;
}

.account-auth__solo p {
    color: var(--aa-ink-2);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 auto 1.5rem;
    max-width: 28rem;
}

.account-auth__solo p:last-child {
    margin-bottom: 0;
}

.account-auth__solo a:not(.account-auth__solo-btn) {
    color: var(--aa-brand);
    font-weight: 700;
    text-decoration: none;
}

.account-auth__solo a:not(.account-auth__solo-btn):hover {
    color: var(--aa-brand-2);
}

.account-auth__solo-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: center;
    margin-top: .5rem;
}

.account-auth__solo-btn,
.account-auth__solo-btn-outline {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 700;
    gap: .25rem;
    padding: .85rem 1.55rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.account-auth__solo-btn {
    background: linear-gradient(135deg, var(--aa-brand), var(--aa-brand-2));
    border: 0;
    box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .55);
    color: #ffffff;
}

.account-auth__solo-btn:hover {
    box-shadow: 0 18px 36px -12px rgba(79, 70, 229, .65);
    color: #ffffff;
    transform: translateY(-2px);
}

.account-auth__solo-btn i {
    font-size: 1.3em;
    transition: transform .2s ease;
}

.account-auth__solo-btn:hover i {
    transform: translateX(4px);
}

.account-auth__solo-btn-outline {
    background: #ffffff;
    border: 1.5px solid var(--aa-brand);
    color: var(--aa-brand);
}

.account-auth__solo-btn-outline:hover {
    background: var(--aa-brand-soft);
    color: var(--aa-brand);
}

/* ----- Status alerts (shared by both shell variants) ------------------ */
.account-auth__status .alert,
.account-auth__solo .alert,
.account-auth__form-panel .alert {
    align-items: flex-start;
    border: 1px solid transparent;
    border-radius: 14px;
    display: flex;
    font-weight: 600;
    gap: .65rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    padding: 1rem 1.15rem;
    text-align: left;
}

.account-auth__status .alert-success,
.account-auth__solo .alert-success,
.account-auth__form-panel .alert-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #a7f3d0;
    color: #047857;
}

.account-auth__status .alert-danger,
.account-auth__solo .alert-danger,
.account-auth__form-panel .alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fff1f2);
    border-color: #fecaca;
    color: #b91c1c;
}

.account-auth__status .alert-info,
.account-auth__solo .alert-info,
.account-auth__form-panel .alert-info {
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border-color: #c7d2fe;
    color: #3730a3;
}

.account-auth__status .alert-warning,
.account-auth__solo .alert-warning,
.account-auth__form-panel .alert-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
    color: #92400e;
}

/* ----- Help block (small lead paragraph used inside form panels) ------ */
.account-auth__lead {
    color: var(--aa-mute);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

.account-auth__lead--alert {
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    color: var(--aa-ink-2);
    padding: 1rem 1.15rem;
}

.account-auth__lead a {
    color: var(--aa-brand);
    font-weight: 700;
    text-decoration: none;
}

.account-auth__lead a:hover {
    color: var(--aa-brand-2);
}

/* =========================================================================
   School signup page (/signup)
   Matches the indigo → violet → pink palette used by the homepage & auth.
   ========================================================================= */

.signup-hero,
.signup-shell {
    --su-ink: #0f172a;
    --su-ink-2: #334155;
    --su-mute: #64748b;
    --su-line: #e2e8f0;
    --su-brand: #4f46e5;
    --su-brand-2: #7c3aed;
    --su-brand-soft: #eef2ff;
    --su-accent: #ec4899;
    --su-success: #10b981;
    --su-danger: #dc2626;
    --su-warning: #d97706;
}

/* ----- HERO ------------------------------------------------------------- */
.signup-hero {
    background: linear-gradient(180deg, #f5f3ff 0%, #faf7ff 60%, #ffffff 100%);
    border-bottom: 1px solid var(--su-line);
    overflow: hidden;
    padding: 5rem 0 3.5rem;
    position: relative;
}

.signup-orbs,
.signup-orbs .orb {
    pointer-events: none;
}

.signup-orbs {
    inset: 0;
    position: absolute;
}

.signup-orbs .orb {
    border-radius: 50%;
    filter: blur(45px);
    position: absolute;
}

.signup-orbs .orb-a {
    width: 360px;
    height: 360px;
    top: -100px;
    left: -120px;
    background: radial-gradient(circle, rgba(124, 58, 237, .3), rgba(124, 58, 237, 0) 70%);
}

.signup-orbs .orb-b {
    width: 280px;
    height: 280px;
    bottom: -100px;
    right: -60px;
    background: radial-gradient(circle, rgba(236, 72, 153, .22), rgba(236, 72, 153, 0) 70%);
}

.signup-orbs .orb-c {
    width: 220px;
    height: 220px;
    top: 40%;
    right: 25%;
    background: radial-gradient(circle, rgba(99, 102, 241, .18), rgba(99, 102, 241, 0) 70%);
}

.signup-hero .container,
.signup-shell .container {
    position: relative;
    z-index: 1;
}

.signup-hero__inner {
    max-width: 760px;
}

.signup-kicker {
    align-items: center;
    color: var(--su-brand);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    gap: .55rem;
    letter-spacing: .14em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.signup-kicker .dot {
    background: var(--su-brand);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .18);
    display: inline-block;
    height: 8px;
    width: 8px;
}

.signup-kicker--light {
    color: #ffffff;
}

.signup-kicker--light .dot {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}

.signup-hero h1 {
    color: var(--su-ink);
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.signup-accent {
    background: linear-gradient(120deg, var(--su-brand) 0%, var(--su-brand-2) 50%, var(--su-accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.signup-hero p {
    color: var(--su-ink-2);
    font-size: 1.18rem;
    line-height: 1.7;
    margin: 0 0 1.75rem;
    max-width: 640px;
}

.signup-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.signup-hero__meta span {
    align-items: center;
    color: var(--su-ink-2);
    display: inline-flex;
    font-size: .92rem;
    font-weight: 600;
    gap: .5rem;
}

.signup-hero__meta i {
    color: var(--su-brand);
    font-size: 1.1rem;
}

/* ----- SHELL (form area) ----------------------------------------------- */
.signup-shell {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
    padding: 3.5rem 0 5rem;
    position: relative;
}

.signup-grid {
    align-items: stretch;
    display: grid;
    gap: 1.75rem;
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
}

/* ----- CONTEXT (left dark panel) --------------------------------------- */
.signup-context {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #6d28d9 100%);
    border-radius: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    padding: 2.25rem;
    position: relative;
}

.signup-context::before,
.signup-context::after {
    content: "";
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.signup-context::before {
    width: 280px;
    height: 280px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(236, 72, 153, .5), transparent 70%);
}

.signup-context::after {
    width: 240px;
    height: 240px;
    bottom: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(99, 102, 241, .55), transparent 70%);
}

.signup-context > * {
    position: relative;
    z-index: 1;
}

.signup-context__title {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.signup-context__icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    color: #fde68a;
    display: flex;
    flex-shrink: 0;
    font-size: 1.25rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.signup-context__title h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin: 0;
}

.signup-steps {
    counter-reset: signup-step;
    display: grid;
    gap: .85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.signup-steps li {
    align-items: flex-start;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr;
    padding: 1rem 1.1rem;
    transition: background .2s ease, transform .2s ease;
}

.signup-steps li:hover {
    background: rgba(255, 255, 255, .13);
    transform: translateX(3px);
}

.signup-step__num {
    align-items: center;
    background: linear-gradient(135deg, #f472b6, #c4b5fd);
    border-radius: 10px;
    color: #1e1b4b;
    display: flex;
    font-size: .85rem;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.signup-steps strong,
.signup-steps span {
    display: block;
}

.signup-steps strong {
    color: #ffffff;
    font-size: .98rem;
    margin-bottom: .15rem;
}

.signup-steps span {
    color: rgba(241, 245, 249, .85);
    font-size: .88rem;
    line-height: 1.5;
}

.signup-trust {
    align-items: flex-start;
    background: rgba(16, 185, 129, .14);
    border: 1px solid rgba(110, 231, 183, .35);
    border-radius: 14px;
    display: grid;
    gap: .85rem;
    grid-template-columns: auto 1fr;
    margin-top: auto;
    padding: 1rem 1.15rem;
}

.signup-trust__icon {
    align-items: center;
    background: rgba(16, 185, 129, .28);
    border-radius: 10px;
    color: #a7f3d0;
    display: flex;
    flex-shrink: 0;
    font-size: 1.1rem;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.signup-trust strong,
.signup-trust span {
    display: block;
}

.signup-trust strong {
    color: #ffffff;
    font-size: .95rem;
    margin-bottom: .15rem;
}

.signup-trust span {
    color: rgba(220, 252, 231, .9);
    font-size: .86rem;
    line-height: 1.55;
}

/* ----- FORM CARD ------------------------------------------------------- */
.signup-card {
    background: #ffffff;
    border: 1px solid var(--su-line);
    border-radius: 24px;
    box-shadow: 0 30px 80px -30px rgba(79, 70, 229, .35),
                0 8px 16px -6px rgba(15, 23, 42, .08);
    padding: 2.5rem;
}

.signup-card__header {
    margin-bottom: 2rem;
}

.signup-card__header h2 {
    color: var(--su-ink);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 .65rem;
}

.signup-card__header p {
    color: var(--su-mute);
    font-size: 1.05rem;
    margin: 0;
}

.signup-form {
    display: grid;
    gap: 1.75rem;
}

.signup-form__validation {
    background: linear-gradient(135deg, #fee2e2, #fff1f2);
    border: 1px solid #fecaca;
    border-radius: 14px;
    color: #b91c1c;
    display: grid;
    font-weight: 600;
    gap: .35rem;
    margin: 0;
    padding: 1rem 1.15rem;
}

.signup-form__validation ul {
    color: #b91c1c;
    margin: 0;
    padding-left: 1.25rem;
}

.signup-group {
    border: 0;
    margin: 0;
    padding: 0;
}

.signup-group legend {
    align-items: center;
    color: var(--su-ink);
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 800;
    gap: .65rem;
    margin-bottom: 1.1rem;
    padding: 0;
    width: auto;
}

.signup-group__badge {
    align-items: center;
    background: linear-gradient(135deg, var(--su-brand), var(--su-brand-2));
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.signup-row {
    display: grid;
    gap: 1rem;
}

.signup-row + .signup-row {
    margin-top: 1rem;
}

.signup-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.signup-field label {
    color: var(--su-ink);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.005em;
}

.signup-field label .req {
    color: var(--su-accent);
    margin-left: .15rem;
}

.signup-field label .optional {
    color: var(--su-mute);
    font-weight: 500;
    margin-left: .25rem;
}

.signup-field__hint {
    color: var(--su-mute);
    font-size: .82rem;
    line-height: 1.5;
}

.signup-input {
    background: #f8fafc;
    border: 1.5px solid var(--su-line);
    border-radius: 12px;
    color: var(--su-ink);
    font-size: 1rem;
    padding: .85rem 1rem;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.signup-input::placeholder {
    color: #94a3b8;
}

.signup-input:focus,
.signup-input:focus-visible {
    background: #ffffff;
    border-color: var(--su-brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .15);
    outline: 0;
}

.signup-input--textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.signup-input-wrap {
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid var(--su-line);
    border-radius: 12px;
    display: flex;
    gap: .5rem;
    overflow: hidden;
    padding-left: .85rem;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.signup-input-wrap:focus-within {
    background: #ffffff;
    border-color: var(--su-brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .15);
}

.signup-input-wrap .signup-prefix {
    color: var(--su-brand);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
    user-select: none;
}

.signup-input-wrap .signup-prefix-icon {
    color: var(--su-brand);
    font-size: 1.1rem;
}

.signup-input--with-prefix {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    flex: 1;
    padding-left: 0;
}

.signup-input--with-prefix:focus {
    box-shadow: none !important;
}

.signup-field__error {
    color: var(--su-danger);
    font-size: .85rem;
    font-weight: 600;
}

.signup-field__error::before {
    content: "\26A0  ";
}

/* ----- ALERTS ---------------------------------------------------------- */
.signup-alert {
    align-items: flex-start;
    border: 1px solid;
    border-radius: 14px;
    display: grid;
    font-weight: 600;
    gap: .85rem;
    grid-template-columns: auto 1fr;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
}

.signup-alert i {
    font-size: 1.25rem;
    line-height: 1.4;
}

.signup-alert--warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
    color: #92400e;
}

.signup-alert--danger {
    background: linear-gradient(135deg, #fee2e2, #fff1f2);
    border-color: #fecaca;
    color: #b91c1c;
}

/* ----- SUBMIT ---------------------------------------------------------- */
.signup-form__actions {
    align-items: center;
    border-top: 1px solid var(--su-line);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: .5rem;
    padding-top: 1.5rem;
}

.signup-submit {
    align-items: center;
    background: linear-gradient(135deg, var(--su-brand) 0%, var(--su-brand-2) 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .55);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    gap: .35rem;
    justify-content: center;
    min-width: 12rem;
    padding: .9rem 1.6rem;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.signup-submit:hover:not(:disabled) {
    box-shadow: 0 18px 36px -12px rgba(79, 70, 229, .65);
    transform: translateY(-2px);
}

.signup-submit:disabled {
    cursor: not-allowed;
    opacity: .75;
    transform: none;
}

.signup-submit i {
    font-size: 1.3em;
    transition: transform .2s ease;
}

.signup-submit:hover:not(:disabled) i {
    transform: translateX(4px);
}

.signup-spinner {
    animation: signup-spin .8s linear infinite;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    border-top-color: #ffffff;
    display: inline-block;
    height: 16px;
    width: 16px;
}

@keyframes signup-spin {
    to { transform: rotate(360deg); }
}

.signup-form__legal {
    color: var(--su-mute);
    flex: 1;
    font-size: .82rem;
    line-height: 1.55;
    min-width: 16rem;
}

/* ----- BUTTONS (shared brand pills used by success state) -------------- */
.signup-shell .btn-brand,
.signup-shell .btn-outline-brand {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 700;
    gap: .25rem;
    padding: .85rem 1.55rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.signup-shell .btn-brand {
    background: linear-gradient(135deg, var(--su-brand), var(--su-brand-2));
    border: 0;
    box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .55);
    color: #ffffff;
}

.signup-shell .btn-brand:hover {
    box-shadow: 0 18px 36px -12px rgba(79, 70, 229, .65);
    color: #ffffff;
    transform: translateY(-2px);
}

.signup-shell .btn-brand i {
    font-size: 1.3em;
    transition: transform .2s ease;
}

.signup-shell .btn-brand:hover i {
    transform: translateX(4px);
}

.signup-shell .btn-outline-brand {
    background: #ffffff;
    border: 1.5px solid var(--su-brand);
    color: var(--su-brand);
}

.signup-shell .btn-outline-brand:hover {
    background: var(--su-brand-soft);
    color: var(--su-brand);
}

/* ----- SUCCESS STATE --------------------------------------------------- */
.signup-success {
    text-align: center;
    padding: 1rem 0;
}

.signup-success__icon {
    align-items: center;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    box-shadow: 0 20px 40px -15px rgba(16, 185, 129, .55);
    color: #ffffff;
    display: inline-flex;
    font-size: 2.5rem;
    height: 84px;
    justify-content: center;
    margin: 0 auto 1.5rem;
    width: 84px;
    animation: signup-pop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes signup-pop {
    0%   { opacity: 0; transform: scale(.4); }
    100% { opacity: 1; transform: scale(1); }
}

.signup-success .signup-kicker {
    justify-content: center;
}

.signup-success h2 {
    color: var(--su-ink);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 .85rem;
}

.signup-success p {
    color: var(--su-ink-2);
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0 auto 1.75rem;
    max-width: 36rem;
}

.signup-success__list {
    display: grid;
    gap: .65rem;
    list-style: none;
    margin: 0 auto 2rem;
    max-width: 28rem;
    padding: 0;
    text-align: left;
}

.signup-success__list li {
    align-items: center;
    background: linear-gradient(135deg, #faf5ff, #eef2ff);
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    color: var(--su-ink-2);
    display: flex;
    font-weight: 600;
    gap: .75rem;
    padding: .85rem 1rem;
}

.signup-success__list i {
    color: var(--su-brand);
    font-size: 1.15rem;
}

.signup-success__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: center;
}

/* ----- RESPONSIVE ------------------------------------------------------ */
@media (max-width: 991.98px) {
    .signup-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .signup-hero h1 {
        font-size: 2.4rem;
    }

    .signup-shell {
        padding: 2.5rem 0 4rem;
    }

    .signup-grid {
        grid-template-columns: 1fr;
    }

    .signup-context {
        padding: 2rem;
    }

    .signup-card {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .signup-hero h1 {
        font-size: 2rem;
    }

    .signup-hero p {
        font-size: 1.02rem;
    }

    .signup-hero__meta {
        gap: .65rem 1rem;
    }

    .signup-card {
        border-radius: 18px;
        padding: 1.5rem;
    }

    .signup-context {
        border-radius: 18px;
        padding: 1.5rem;
    }

    .signup-card__header h2,
    .signup-success h2 {
        font-size: 1.6rem;
    }

    .signup-row.two {
        grid-template-columns: 1fr;
    }

    .signup-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .signup-submit {
        width: 100%;
    }
}
