.auth-panel,
.auth-panel-aside,
.auth-panel-form,
.auth-form-card,
.auth-aside-points,
.auth-step-list,
.auth-section-card,
.auth-stepper,
.auth-summary-grid,
.auth-continue-grid,
.auth-suggestion-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-panel {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.35fr);
    gap: 1.5rem;
}

.auth-panel-wide {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.5fr);
}

.auth-panel-aside,
.auth-form-card,
.auth-section-card,
.auth-step-item,
.auth-radio-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
}

.auth-panel-aside {
    padding: 1.6rem;
    background: linear-gradient(135deg, var(--theme-hero-surface-start), var(--theme-hero-surface-end));
    color: var(--theme-hero-text);
}

.auth-panel-aside h1,
.auth-panel-aside p,
.auth-panel-aside .eyebrow {
    color: inherit;
}

.auth-panel-form {
    gap: 0.75rem;
}

.auth-controls-bar {
    display: flex;
    justify-content: flex-end;
}

.auth-form-card {
    padding: 1.6rem;
}

.auth-single-card {
    max-width: 640px;
    margin: 0 auto;
}

.auth-form-head h1,
.auth-form-head h2,
.auth-section-head h3 {
    margin-bottom: 0.65rem;
}

.auth-stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-stepper-item,
.auth-continue-card,
.auth-inline-summary {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 0.95rem 1rem;
    background: color-mix(in srgb, var(--paper) 84%, var(--brand-soft) 16%);
}

.auth-stepper-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-stepper-item span {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--paper);
    color: var(--brand);
    font-weight: 800;
}

.auth-stepper-item.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.18rem var(--theme-focus-ring);
}

.auth-inline-summary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-inline-summary span,
.auth-continue-card span:last-child,
.auth-step-item div {
    color: var(--muted);
}

.auth-field,
.auth-checkbox {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
}

.auth-field span {
    color: var(--muted);
    font-weight: 700;
}

.auth-inline-link,
.auth-footnote a {
    color: var(--brand);
    font-weight: 700;
}

.auth-footnote {
    color: var(--muted);
    text-align: center;
}

.auth-aside-points div,
.auth-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.auth-step-item {
    padding: 1rem 1.1rem;
    background: color-mix(in srgb, var(--paper) 82%, var(--brand-soft) 18%);
    color: var(--ink);
}

.auth-step-item.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.18rem var(--theme-focus-ring);
}

.auth-step-item div {
    color: var(--muted);
}

.auth-step-item strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.auth-step-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--brand-soft);
    color: var(--brand);
    flex: 0 0 auto;
}

.auth-radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-radio-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
}

.auth-radio-card small {
    display: block;
    color: var(--muted);
    margin-top: 0.2rem;
}

.auth-section-card {
    padding: 1.2rem;
    background: color-mix(in srgb, var(--paper) 86%, var(--brand-soft) 14%);
}

.auth-suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.auth-summary-grid,
.auth-continue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.auth-continue-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-continue-card:hover,
.auth-continue-card.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.auth-code-input {
    letter-spacing: 0.55em;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
}

.auth-centered-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-empty-state {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

@media (max-width: 991.98px) {

    .auth-panel,
    .auth-panel-wide,
    .auth-radio-group {
        grid-template-columns: 1fr;
    }
}

.template-auth-card,
.template-onboard-card {
    width: min(100%, 680px);
    margin: 0 auto;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.15rem;
}

.template-auth-card-top,
.template-onboard-header {
    display: grid;
    gap: 0.8rem;
}

.template-auth-icon {
    width: 4.5rem;
    height: 4.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-brand) 12%, var(--paper-strong));
    color: var(--theme-brand);
    font-size: 1.45rem;
}

.template-auth-card h1,
.template-onboard-card h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.template-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.template-auth-brand-mark {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: color-mix(in srgb, var(--theme-brand) 14%, var(--theme-panel-bg));
    color: var(--theme-brand);
    font-size: 1.15rem;
}

.template-auth-brand-copy {
    display: grid;
    gap: 0.1rem;
}

.template-auth-brand-copy strong {
    font-size: 1.05rem;
    line-height: 1.1;
}

.template-auth-brand-copy span {
    color: var(--muted);
    font-size: 0.8rem;
}

.template-auth-card-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.template-auth-card-brand-split {
    justify-content: space-between;
}

.template-auth-screen {
    width: min(100%, 480px);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.template-auth-form-card {
    width: 100%;
    gap: 1.25rem;
}

.template-signup-template {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg);
}

.template-signup-template-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

.template-signup-template-hero {
    position: relative;
    display: none;
    overflow: hidden;
    background: linear-gradient(180deg, var(--theme-hero-surface-start) 0%, var(--theme-hero-surface-end) 100%);
    min-height: 100vh;
}

.template-signup-hero-copy {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    margin: auto;
    padding: 3rem;
    text-align: center;
    color: var(--theme-hero-text);
    display: grid;
    gap: 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.template-signup-hero-link {
    color: inherit;
    text-decoration: none;
}

.template-signup-hero-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--theme-hero-text-muted);
}

.template-signup-hero-copy p {
    color: var(--theme-hero-text-muted);
}

.template-signup-hero-badge {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--theme-hero-badge-bg);
    color: var(--theme-hero-badge-text);
    font-size: 1.8rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.template-signup-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.template-signup-template-form-side {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.template-signup-form-wrap {
    width: 100%;
    display: grid;
    gap: 1.25rem;
    max-width: 600px;
}

.template-signup-title-block {
    margin-bottom: 0.25rem;
}

.template-signup-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--theme-brand);
    font-family: "Lexend", Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.template-signup-mobile-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--theme-brand);
    color: var(--theme-brand-text);
}

.template-signup-form .field,
.template-signin-form .field {
    display: grid;
    gap: 0.35rem;
}

.template-auth-title-block,
.template-onboard-page-header {
    display: grid;
    gap: 0.8rem;
}

.template-auth-title-block.text-start {
    text-align: left;
}

.template-signup-form .field>span,
.template-signin-form .field>span,
.template-auth-form .field>span {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.template-signup-input {
    border-radius: 0.5rem;
    background: var(--paper-strong);
}

.template-signup-support {
    margin-top: 0.5rem;
}

.template-signup-submit {
    min-height: 3.5rem;
    border-radius: 0.5rem;
}

.template-signin-form,
.template-signin-verify-panel,
.template-auth-form,
.template-auth-verify-panel {
    display: grid;
    gap: 1rem;
}

.template-signin-form {
    gap: 1.25rem;
}

.template-signin-verify-panel {
    gap: 1.25rem;
}

.template-signin-support {
    margin-top: 0.5rem;
}

.template-auth-inline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
}

.template-auth-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.template-auth-secondary-actions {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
}

.template-auth-link-button,
.template-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 0;
    padding: 0;
    color: var(--muted);
    font-weight: 600;
}

.template-auth-link-button {
    color: var(--theme-brand);
}

.template-auth-link-button:hover,
.template-auth-back-link:hover,
.template-auth-support a:hover,
.template-auth-link:hover {
    color: var(--theme-brand-strong);
}

.template-auth-divider-link {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: center;
}

.template-auth-support {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.template-auth-support a,
.template-auth-link {
    color: var(--theme-brand);
    font-weight: 600;
}

.template-auth-recover-card,
.template-onboard-panel {
    position: relative;
    overflow: hidden;
}

.template-auth-recover-card::before,
.template-onboard-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--theme-brand);
}

.template-signup-role-group {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.template-signup-role-group legend {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.template-signup-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.template-signup-role-card {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.5rem;
    min-height: 160px;
    padding: 1.4rem 1rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--paper-strong);
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.template-signup-role-card:hover {
    background: var(--theme-surface-alt);
}

.template-signup-role-card>i {
    font-size: 2rem;
    color: var(--muted);
}

.template-signup-role-title {
    font-family: "Lexend", Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.template-signup-role-copy {
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--muted);
}

.template-signup-role-card.active {
    border-width: 2px;
    border-color: var(--theme-brand);
    background: color-mix(in srgb, var(--theme-brand) 12%, var(--paper-strong));
}

.template-signup-role-card.active>i,
.template-signup-role-card.active .template-signup-role-title,
.template-signup-role-check {
    color: var(--theme-brand);
}

.template-signup-role-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.1rem;
    opacity: 0;
}

.template-signup-role-card.active .template-signup-role-check {
    opacity: 1;
}

.template-onboard-shell {
    width: min(100%, 980px);
    margin: 0 auto;
}

.template-onboard-progress-panel {
    display: grid;
    gap: 0.6rem;
}

.template-onboard-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.template-onboard-step-count {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.template-onboard-progress-bar {
    height: 0.65rem;
    border-radius: 999px;
    background: var(--theme-surface-alt);
    overflow: hidden;
}

.template-onboard-progress-bar .progress-bar {
    background: var(--theme-brand);
}

.template-form-section-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.template-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.template-option-card {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    min-height: 180px;
    padding: 1.25rem;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper-strong);
}

.template-option-card i {
    color: var(--muted);
    font-size: 1.4rem;
}

.template-option-card span {
    color: var(--muted);
}

.template-option-card.active {
    border-width: 2px;
    border-color: var(--theme-brand);
    background: color-mix(in srgb, var(--theme-brand) 12%, var(--theme-panel-bg));
}

.template-option-card.active i,
.template-option-card.active strong {
    color: var(--theme-brand);
}

.template-summary-note {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--theme-brand) 8%, var(--theme-panel-bg));
}

.template-summary-note span {
    color: var(--muted);
}

.template-summary-note-plain {
    background: var(--theme-surface-alt);
}

.template-final-step-card {
    display: grid;
    gap: 0.8rem;
    text-align: center;
    padding: 1rem 0;
}

.template-final-step-card h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.template-onboard-stepper {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    margin: 0 auto;
}

.template-onboard-step {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    text-align: center;
}

.template-onboard-step-index {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--theme-surface-alt);
    color: var(--muted);
    font-weight: 800;
}

.template-onboard-step-label {
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.2;
}

.template-onboard-step.active .template-onboard-step-index {
    background: var(--theme-brand);
    border-color: var(--theme-brand);
    color: var(--theme-brand-text);
}

.template-onboard-step.complete .template-onboard-step-index {
    background: color-mix(in srgb, var(--theme-brand) 18%, var(--theme-panel-bg));
    border-color: color-mix(in srgb, var(--theme-brand) 32%, var(--theme-panel-bg));
    color: var(--theme-brand);
}

.template-onboard-step.active .template-onboard-step-label {
    color: var(--theme-brand);
}

.template-input-icon {
    min-width: 3rem;
    justify-content: center;
    background: var(--theme-surface-alt);
    color: var(--muted);
    border-color: var(--line);
}

.template-address-field {
    position: relative;
}

.template-address-suggestions {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    display: grid;
    gap: 0.5rem;
    z-index: 20;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow);
    max-height: 18rem;
    overflow-y: auto;
}

.template-address-suggestion-item {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper-strong);
}

.template-address-suggestion-item span,
.template-check-row {
    color: var(--muted);
}

.template-verify-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.template-verify-input {
    min-height: 4rem;
    text-align: center;
    font-family: "Lexend", Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    border-radius: 18px;
}

.template-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.template-auth-aux {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .template-signup-template {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .template-signup-template-hero {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {

    .template-auth-card-brand,
    .template-auth-card-brand-split,
    .template-signup-controls,
    .template-onboard-progress-head,
    .template-option-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .template-signup-template-controls {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .template-signup-template-form-side {
        padding: 1.5rem 1.5rem 2.5rem;
    }

    .template-signup-role-grid {
        grid-template-columns: 1fr;
    }

    .template-signup-template-hero {
        min-height: 24rem;
    }

    .template-onboard-stepper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .template-verify-grid {
        grid-template-columns: 1fr;
    }

    .template-auth-inline-row,
    .template-auth-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 575.98px) {
    .template-onboard-stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
