/* Registration uses the same card, typography, fields and buttons as sign-in. */
.phone-verification { min-width: 0; margin: 0 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #f4f8f6; }
.phone-verification [hidden] { display: none; }
.verification-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.verification-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #cbded8; border-radius: 13px; background: #e6f0eb; color: var(--teal); }
.verification-header h2 { margin: 0 0 4px; color: var(--teal); font-size: 16px; font-weight: 600; line-height: 1.4; }
.verification-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.verification-options { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.verification-options legend { margin-bottom: 10px; padding: 0; color: var(--teal); font-size: 12px; font-weight: 600; }
.verification-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.phone-verification .verification-choice { display: flex; align-items: center; gap: 10px; min-height: 72px; margin: 0; padding: 12px; border: 1px solid #cbd9d7; border-radius: 10px; background: #fff; cursor: pointer; }
.verification-choice:hover { border-color: #5b979c; }
.verification-choice:has(input:checked) { border-color: var(--teal); background: #eaf3ef; box-shadow: inset 0 0 0 1px var(--teal); }
.verification-choice:has(input:focus-visible) { outline: 3px solid #5daeb1; outline-offset: 3px; }
.verification-choice:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.verification-choice strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.verification-choice span span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.5; }
.verification-options input { flex-shrink: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.phone-verification label { display: block; margin: 16px 0 8px; color: var(--teal); font-size: 12px; font-weight: 600; }
.sms-button { min-height: 46px; padding: 12px 16px; border: 1px solid var(--teal); border-radius: 10px; background: var(--teal); color: #fff; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.sms-button:hover:not(:disabled) { background: #205768; border-color: #205768; }
#sendVerificationCode { width: 100%; }
.sms-button:focus-visible { outline: 3px solid #5daeb1; outline-offset: 3px; }
.verification-code-entry { display: flex; align-items: stretch; gap: 10px; }
.verification-code-entry .sms-code { min-width: 0; flex: 1; padding: 14px 16px; letter-spacing: .15em; }
.verification-code-entry .sms-button { flex-shrink: 0; }
.sms-status { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.sms-status:empty { display: none; }
.sms-success { color: #27634c; }
.sms-error { color: #a73724; }
.sms-button:disabled, .btn-create-account:disabled { opacity: .6; cursor: not-allowed; }
.registration-layout { width: 100%; min-width: 0; max-width: 760px; }
.register-container { max-width: none; }
#registerForm { margin: 0; }
.form-section { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.form-section legend {
    width: 100%;
    margin-bottom: 18px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.form-row { display: block; }
.form-group { min-width: 0; }
.form-section > .form-row:last-child .form-group:last-child,
.form-section > .form-group:last-of-type { margin-bottom: 0; }
.section-help { margin: -4px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
select { font: inherit; }
select.form-control { appearance: auto; padding-right: 12px; }
.address-select.is-open { z-index: 20; }
.address-select > [hidden], .address-select-empty[hidden] { display: none; }
.address-select-trigger { position: relative; padding-right: 42px; text-align: left; cursor: pointer; }
.address-select-trigger span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-select-trigger::after { content: ''; position: absolute; right: 19px; top: 21px; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 160ms ease; }
.address-select-trigger.is-placeholder { color: var(--muted); }
.address-select-trigger:hover:not(:disabled) { border-color: #5b979c; }
.address-select-trigger:focus-visible, .address-select.is-open .address-select-trigger { outline: none; border-color: #5b979c; box-shadow: 0 0 0 3px rgba(93, 174, 177, .16); }
.address-select.is-open .address-select-trigger::after { top: 25px; transform: rotate(225deg); }
.address-select-trigger[aria-invalid="true"] { border-color: var(--coral-dark); }
.address-select-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: flex; flex-direction: column; max-height: var(--menu-height, 320px); padding: 8px; border: 1px solid #cbd9d7; border-radius: 14px; background: #fffdf8; box-shadow: 0 12px 32px rgba(20, 61, 74, .16); }
.address-select.opens-up .address-select-menu { top: auto; bottom: calc(100% + 8px); }
.address-select-search { flex-shrink: 0; width: 100%; min-height: 42px; margin-bottom: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f4f8f6; color: var(--ink); font: inherit; font-size: 16px; line-height: 20px; }
.address-select-search::placeholder { color: var(--muted); }
.address-select-search:focus { outline: none; border-color: #5b979c; box-shadow: inset 0 0 0 1px #5b979c; }
.address-select-options { min-height: 0; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; scrollbar-color: #b6cbc7 transparent; }
.address-select-option { position: relative; margin: 2px 0; padding: 12px 34px 12px 12px; border-radius: 8px; color: var(--teal); font-size: 12px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; cursor: pointer; }
.address-select-option:hover, .address-select-option.is-active { background: #eaf3ef; }
.address-select-option[aria-selected="true"] { background: #e1eeea; font-weight: 600; }
.address-select-option[aria-selected="true"]::after { content: ''; position: absolute; right: 15px; top: 16px; width: 6px; height: 11px; border-right: 2px solid var(--coral-dark); border-bottom: 2px solid var(--coral-dark); transform: rotate(45deg); }
.address-select-empty { margin: 0; padding: 14px 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.form-control:disabled { background: #eef3f1; color: #63777a; opacity: 1; cursor: not-allowed; }
.address-option { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.address-option[hidden] { display: none; }
.address-option input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--coral-dark); }
.address-option label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.7; cursor: pointer; }
.address-option input:focus-visible { outline: 3px solid #5daeb1; outline-offset: 4px; }
.address-help { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.address-loading::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid #f3d8c9; border-top-color: var(--coral-dark); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
.address-retry { margin-top: 8px; padding: 8px 12px; border: 1px solid #f3d8c9; border-radius: 8px; background: #fff0e7; color: var(--coral-dark); font: inherit; font-size: 11px; cursor: pointer; }
.verification-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -4px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.7; text-align: center; }
.verification-note svg { width: 15px; height: 15px; }
.loading-spinner { margin: 0 0 18px; }
@media (max-width: 480px) {
    .phone-verification { padding: 16px; }
    .verification-methods { grid-template-columns: 1fr; }
    .phone-verification .verification-choice { min-height: 64px; }
    .verification-code-entry { flex-direction: column; }
    .verification-note { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .spinner-border, .address-loading::before { animation: none !important; }
}
