/* ── Step Wizard ─────────────────────────────────────────── */
.reg-steps {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.reg-step {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    transition: color 220ms ease;
}

.reg-step.is-active { color: #0f172a; }
.reg-step.is-done   { color: #16a34a; }

.reg-step__num {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid currentColor;
    font-size: 0.67rem;
    font-weight: 800;
    transition: background 220ms, border-color 220ms, color 220ms;
}

.reg-step.is-active .reg-step__num {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.reg-step.is-done .reg-step__num {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.reg-step__label { display: none; }

@media (min-width: 400px) { .reg-step__label { display: inline; } }

.reg-step-line {
    flex: 0 0 20px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 2px;
    border-radius: 99px;
    transition: background 220ms;
}

.reg-step-line.is-done { background: #16a34a; }

/* ── Panels ──────────────────────────────────────────────── */
.reg-panel {
    display: none;
    animation: fadeIn 220ms ease forwards;
}

.reg-panel.is-active {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 2-col grid ──────────────────────────────────────────── */
.reg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .reg-grid-2 { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Nav row ─────────────────────────────────────────────── */
.reg-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.reg-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    min-width: 88px;
    padding: 0 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 150ms, color 150ms, background 150ms;
}

.reg-back-btn:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f8fafc;
}

.reg-next-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(23, 105, 170, 0.18);
    transition: transform 150ms, box-shadow 150ms, opacity 150ms;
}

.reg-next-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(23, 105, 170, 0.26);
}

.reg-next-btn:active:not(:disabled) { transform: translateY(0); }

.reg-next-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Info / success callout ──────────────────────────────── */
.reg-callout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 13px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.8rem;
    line-height: 1.5;
    transition: background 300ms, border-color 300ms, color 300ms;
}

.reg-callout i { flex-shrink: 0; margin-top: 1px; font-size: 0.9rem; }
.reg-callout.is-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* ── Editable-name note ──────────────────────────────────── */
.reg-name-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: -4px;
}

.reg-name-note i { font-size: 0.8rem; color: #94a3b8; }

/* ── Password strength ───────────────────────────────────── */
.pw-strength { display: grid; gap: 5px; }

.pw-strength__bar {
    display: flex;
    gap: 4px;
}

.pw-strength__seg {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: #e2e8f0;
    transition: background 250ms;
}

.pw-strength__seg.is-weak   { background: #ef4444; }
.pw-strength__seg.is-fair   { background: #f97316; }
.pw-strength__seg.is-good   { background: #eab308; }
.pw-strength__seg.is-strong { background: #22c55e; }

.pw-strength__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

/* ── Register card overrides ─────────────────────────────── */
.register-page .login-card {
    min-width: 0;
    max-width: 420px;
    padding: 32px 28px;
}

.register-page .login-main {
    align-items: stretch;
    margin-top: 16px;
    margin-bottom: 40px;
}

/* ── Mobile overrides ────────────────────────────────────── */
@media (max-width: 900px) {
    .register-page .login-main { grid-template-columns: 1fr; }
    .register-page .login-intro { display: none; }
    .register-page .login-shell { width: min(100% - 24px, 366px); }
    .register-page .login-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .reg-steps {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
    }
    .reg-step {
        flex: 0 0 auto;
        min-width: 0;
    }
    .reg-step__label {
        display: none !important;
    }
    .reg-step-line {
        flex: 1 1 24px;
        min-width: 16px;
    }
    .reg-callout {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 520px) {
    .register-page .login-card {
        width: 100%;
        min-width: 0;
        padding: 24px 16px;
    }
    .register-page .login-shell {
        width: calc(100% - 24px);
        max-width: 366px;
        padding: 0;
    }
    .register-page .login-topbar { padding: 0 16px; }
    .reg-steps { margin-bottom: 20px; }
    .reg-back-btn { min-width: 76px; padding: 0 12px; font-size: 0.82rem; }
}

@media (max-width: 360px) {
    .register-page .login-card { padding: 20px 12px; }
}
/* Keep register aligned with the login reference after register.css loads */
.register-page .login-shell,
.register-page .login-main {
    display: initial;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.register-page .login-intro {
    display: flex;
}

.register-page .register-access__inner {
    width: min(100%, 460px);
    margin: 0 auto;
}

.register-page .auth-reference-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 900px) {
    .register-page .login-intro {
        display: flex;
    }

    .register-page .auth-reference-shell {
        grid-template-columns: 1fr;
    }

    .register-page .register-access__inner {
        width: min(100%, 460px);
    }
}

@media (max-width: 520px) {
    .register-page .register-access__inner {
        width: 100%;
        max-width: 420px;
    }

    .register-page .auth-reference-card {
        padding: 0;
    }
}

/* Compact registration card, using the public site's navy and red. */
.register-page .login-field__error {
    color: #b31327;
    font-weight: 400;
}

.register-page .login-field__error[hidden],
.register-page .reg-password-match[hidden] {
    display: none;
}

.register-page .reg-password-guide {
    padding: 12px 14px;
    border: 1px solid #e1e6f1;
    border-radius: 8px;
    color: #627087;
    background: #f5f7fc;
    font-size: 12px;
    line-height: 1.6;
}

.register-page .reg-password-guide strong {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.register-page .reg-password-guide ul {
    display: grid;
    gap: 6px;
    margin: 8px 0;
    padding: 0;
    list-style: none;
}

.register-page .reg-password-guide li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.register-page .reg-password-guide .is-met,
.register-page .reg-password-match {
    color: #22603d;
}

.register-page .reg-password-guide p,
.register-page .reg-password-match {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

body.register-page {
    background: #f5f7fb;
}

body.register-page .auth-public-main {
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background: #f5f7fb;
}

.register-page .auth-reference-shell {
    display: block;
    width: 100%;
    min-height: 0;
    max-width: 480px;
    margin: 0 auto;
}

.register-page .login-showcase.login-intro {
    display: none;
}

.register-page .register-access {
    display: block;
    padding: 0;
    min-height: 0;
    background: transparent;
}

.register-page .register-access__inner {
    width: 100%;
    max-width: none;
}

.register-page .login-card.auth-reference-card {
    width: 100%;
    max-width: none;
    padding: 28px;
    border: 1px solid #dce2ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7, 22, 109, .05);
    scroll-margin-top: 150px;
}

.register-page .auth-reference-card .login-card__header {
    margin: 0 0 18px;
    text-align: center;
}

.register-page .auth-page-title {
    margin: 0 0 6px;
    padding: 0;
    color: #07166d;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.register-page .auth-page-title::after,
.register-page .auth-page-title__icon {
    display: none;
}

.register-page .login-card__header p {
    margin: 0;
    color: #627087;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.register-page .reg-steps {
    display: flex;
    gap: 5px;
    margin: 0 0 22px;
    padding: 0;
    background: transparent;
}

.register-page .reg-step {
    position: relative;
    flex: 1 1 0;
    height: 4px;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #e4e8f0;
    box-shadow: none;
}

.register-page .reg-step.is-active,
.register-page .reg-step.is-done {
    background: #07166d;
}

.register-page .reg-step__num,
.register-page .reg-step__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.register-page .reg-step-line {
    display: none;
}

.register-page .reg-panel.is-active {
    gap: 16px;
}

.register-page .reg-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

.register-page .login-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.register-page .login-field label {
    margin: 0;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.register-page .login-input {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 1px solid #d4d9e3;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.register-page .login-input:focus-within {
    border-color: #07166d;
    box-shadow: 0 0 0 3px rgba(7, 22, 109, .08);
}

.register-page .login-input.is-invalid {
    border-color: #cf1e36;
}

.register-page .login-input > i:not(.login-select-chevron) {
    display: none;
}

.register-page .login-input input,
.register-page .login-input select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: inherit;
    outline: 0;
    color: #25314d;
    background: transparent;
    box-shadow: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.register-page .login-input input::placeholder {
    color: #98a0ae;
}

.register-page .login-input select {
    padding-right: 30px;
    appearance: none;
    background-image: none;
    text-overflow: ellipsis;
}

.register-page .login-input .login-select-chevron {
    position: absolute;
    right: 12px;
    color: #627087;
    font-size: 12px;
    pointer-events: none;
}

.register-page .login-input .login-eye {
    position: static;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    transform: none;
    color: #627087;
}

.register-page .login-field__hint,
.register-page .login-field__error,
.register-page .login-field__status {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.register-page .login-field__hint {
    color: #627087;
    font-weight: 400;
}

.register-page .reg-callout {
    padding: 12px;
    border: 1px solid #e1e6f1;
    border-radius: 8px;
    color: #526079;
    background: #f5f7fc;
    font-size: 13px;
}

.register-page .reg-callout.is-success {
    border-color: #cce4d7;
    color: #22603d;
    background: #f1f8f4;
}

.register-page .reg-nav {
    flex-direction: row;
    gap: 10px;
    margin-top: 2px;
}

.register-page .reg-back-btn,
.register-page .reg-next-btn {
    height: 44px;
    min-height: 44px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

.register-page .reg-back-btn {
    min-width: 78px;
    padding: 0 14px;
    border: 1px solid #d4d9e3;
    color: #526079;
    background: #fff;
}

.register-page .reg-back-btn > i {
    display: none;
}

.register-page .reg-next-btn {
    min-width: 0;
    padding: 0 18px;
    background: #cf1e36;
    color: #fff;
}

.register-page .reg-next-btn:hover:not(:disabled) {
    background: #b31327;
    box-shadow: none;
    transform: none;
}

.register-page .auth-return-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 20px 0 0;
    color: #627087;
    font-size: 12px;
    line-height: 1.5;
}

.register-page .auth-return-row a {
    color: #07166d;
    font-weight: 600;
    text-decoration: none;
}

.register-page .auth-return-row a:hover {
    text-decoration: underline;
}

.register-page :focus-visible {
    outline: 2px solid #07166d;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    body.register-page .auth-public-main {
        min-height: 0;
        padding: 24px 12px 32px;
    }

    .register-page .login-card.auth-reference-card {
        padding: 22px 18px;
        border-radius: 10px;
    }
}

@media (max-width: 360px) {
    .register-page .reg-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .register-page .reg-panel {
        animation: none;
    }
}
