/* Original four-step registration, with consistent field and action spacing. */
.registration-screen { display: flex; flex-direction: column; }
.registration-screen .auth-page { display: block; flex: 1; min-height: 0; padding: 24px 12px 64px; }
.registration-screen .site-footer { display: none; }
.registration-container { width: min(100%, 1320px); margin-inline: auto; }
.registration-form-section { width: min(100%, 408px); margin-inline: auto; }
.registration-heading { text-align: center; }
.registration-heading h1 { margin: 0 0 2px; color: var(--accent); font-size: 1.5rem; font-weight: 800; line-height: 1.5; }
.registration-heading p { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.registration-steps { display: flex; list-style: none; padding: 0; margin: 12px 8px 20px; overflow: hidden; border-radius: 5px; }
.registration-steps li { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; padding-left: 10px; color: #111; background: #d6d6d6; font-size: .875rem; font-weight: 500; }
.registration-steps li:first-child { padding-left: 0; flex: 1.25; }
.registration-steps li:not(:last-child)::after { content: ''; position: absolute; z-index: 2; right: -16px; top: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 17px solid #292929; }
.registration-steps li:not(:last-child)::before { content: ''; position: absolute; z-index: 3; right: -12px; top: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 16px solid #d6d6d6; }
.registration-steps li.is-active { color: #fff; background: #ee00df; font-weight: 700; }
.registration-steps li.is-active::before { border-left-color: #ee00df; }
.registration-form { margin-inline: 16px; }
.registration-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.registration-phone-art { position: relative; display: flex; justify-content: center; margin: 32px auto 24px; width: 100px; height: 80px; color: #ededed; }
.phone-art { width: 56px; height: 80px; }
.sms-art { position: absolute; right: -7px; top: 7px; padding: 5px 3px; background: #ededed; color: var(--page); font-size: 8px; font-weight: 800; border-radius: 50%; }
.sms-art::after { content: ''; position: absolute; left: 1px; bottom: -3px; border-top: 7px solid #ededed; border-right: 7px solid transparent; }
.registration-field { margin-bottom: 12px; }
.registration-field input, .registration-field select { height: 38px; font-size: 1rem; }
.registration-field select { display: block; width: 100%; min-width: 0; padding: 5px 26px 5px 40px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-left: 1px solid #786287; border-radius: 3px; font-family: inherit; color-scheme: dark; }
.registration-field input:not([type="password"]) { padding-right: 12px; }
.registration-field .field-icon { left: 14px; }
.registration-field input::placeholder { font-size: .9375rem; }
.registration-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.registration-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 5px 20px; border-radius: 99px; border: 0; font-size: .875rem; line-height: 1.5; font-weight: 700; white-space: nowrap; }
.registration-button .icon { width: 16px; height: 16px; }
.registration-button.next { min-width: 94px; color: #111; background: var(--accent); }
.registration-button.cancel { min-width: 92px; color: var(--accent); border: 2px solid #ff143b; background: transparent; padding-block: 3px; }
.registration-button.back { color: #222; background: #ededed; padding-inline: 16px; }
.back-arrow { transform: rotate(180deg); }
.registration-button:disabled { opacity: .6; cursor: wait; }
.registration-button:hover { filter: brightness(1.07); }
.registration-preview-hint, .registration-test-note { margin: 12px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.65; text-align: center; }
.registration-test-note { margin: -3px 0 12px; }
.registration-test-note strong { color: var(--accent); letter-spacing: .12em; font-size: .9375rem; }
.registration-error { margin: 12px 0; padding: 4px 8px; text-align: center; background: #e47bff; color: #160025; border-radius: 4px; font-size: .9375rem; overflow-wrap: anywhere; }
.bank-picker { margin: -8px -14px 16px; text-align: center; }
.bank-picker p { margin: 0 0 6px; color: var(--muted); font-size: 1rem; }
.bank-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.bank-option { position: relative; flex: 0 0 calc((100% - 24px) / 7); max-width: 48px; }
.bank-option input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; }
.bank-option label { position: relative; display: flex; align-items: center; justify-content: center; height: 48px; margin: 0; border-radius: 50%; cursor: pointer; }
.bank-option img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.bank-option input:checked + label { outline: 2px solid var(--accent); outline-offset: -1px; }
.bank-option input:focus-visible + label { outline: 3px solid #fff; outline-offset: 2px; }
.bank-check { display: none; position: absolute; top: -1px; right: -1px; width: 18px; height: 18px; background: var(--accent); color: #111; font-size: 13px; border-radius: 50%; }
.bank-option input:checked + label .bank-check { display: block; }
.registration-warning { margin: 8px 0 0; font-size: .9375rem; font-weight: 500; line-height: 1.6; text-align: center; }
.registration-support { margin-top: 40px; }
.registration-description { margin-top: 44px; }
@media (min-width: 768px) {
    .registration-screen .auth-page { padding-top: 32px; }
    .registration-support { max-width: 900px; margin-inline: auto; }
}
@media (max-width: 359px) {
    .registration-heading p { font-size: .875rem; }
    .registration-form { margin-inline: 8px; }
    .registration-button { padding-inline: 14px; }
    .bank-picker { margin-inline: -4px; }
    .bank-option img { width: 38px; height: 38px; }
}
/* Keep the closed select consistent with the other fields; retain readable native options. */
.registration-field select:invalid { color: #8f839b; }
.registration-field select option { color: #2b2134; background: #f5f2f7; font-size: 1rem; }
.registration-field select:focus { outline: 2px solid #bca8cf; outline-offset: 2px; border-color: #bca8cf; }
.registration-field input { border-left: 1px solid #786287; }
.registration-field input:focus { border: 1px solid #bca8cf; outline: 2px solid #bca8cf; outline-offset: 2px; }
.registration-screen .registration-error:focus { outline: 2px solid #bca8cf; outline-offset: 2px; }
.registration-completed { margin: 40px 16px 0; text-align: center; }
.registration-completed h2 { margin: 0 0 8px; color: var(--text); font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.registration-completed form { margin: 0; }
.registration-completed .registration-button { margin-top: 0; min-width: 92px; min-height: 35px; }
