/* Phone-first account entry, preserving Near2's established palette. */
.auth-entry { padding-top: 42px; background: var(--sand-50, #fcfaf8); }
.auth-entry-card { width: min(480px, 100%); padding: 36px 40px 30px; border: 0; box-shadow: none; background: transparent; }
.auth-entry-card h1, .auth-entry-card > .sub { text-align: center; }
.auth-entry-card h1 { margin-top: 16px; font-size: 2rem; letter-spacing: -.04em; }
.auth-entry-card > .sub { line-height: 1.6; }
.auth-wordmark { display: block; width: fit-content; margin: 0 auto 24px; color: var(--text); font-family: var(--font-heading, serif); font-weight: 700; font-size: 2.2rem; letter-spacing: -.08em; text-decoration: none; }
.auth-wordmark .site-logo { height: 64px; mix-blend-mode: multiply; }
.auth-phone-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.auth-phone-row { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 8px; }
.auth-phone-row .input { min-width: 0; height: 52px; }
.auth-phone-help { font-size: .79rem; line-height: 1.55; margin: 9px 0 16px; }
.auth-continue { min-height: 52px; border-radius: 12px; }
.auth-method { position: relative; display: flex; width: 100%; min-height: 52px; justify-content: center; align-items: center; gap: 10px; margin-bottom: 11px; padding: 12px 34px; border-radius: 12px; background: white; font-size: .94rem; font-weight: 600; text-decoration: none; }
.auth-method-icon { position: absolute; left: 17px; flex: none; }
.auth-method small { font-size: .65rem; font-weight: 400; position: absolute; right: 10px; top: 3px; }
.auth-method:disabled { color: var(--text-muted); opacity: .65; cursor: not-allowed; }
.auth-method:focus-visible, .auth-back:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.auth-centered, .auth-legal { text-align: center; line-height: 1.65; }
.auth-centered { margin-top: 17px; font-size: .8rem; }
.auth-business { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 22px; text-align: center; font-size: .88rem; }
.auth-legal { color: var(--text-muted); font-size: .75rem; margin-top: 24px; }
.auth-email-options { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; margin: 15px 0 20px; }
.auth-email-options .check { margin: 0; }
.auth-back { display: block; text-align: center; margin: 20px 0; font-size: .86rem; }
.auth-code { width: 100%; height: 64px; text-align: center; font-size: 1.8rem; font-weight: 600; letter-spacing: .45em; padding-left: .55em; font-variant-numeric: tabular-nums; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(16.66% - 1px), var(--border-soft) calc(16.66% - 1px), var(--border-soft) 16.66%); }
.auth-verify-icon { margin: 10px auto 25px; width: 64px; height: 64px; display: grid; place-items: center; color: var(--primary); background: var(--rose-50); border-radius: 50%; }
.auth-more { text-align: center; font-size: .85rem; margin-top: 24px; }
.auth-more summary { cursor: pointer; text-decoration: underline; }
.auth-more form { margin-top: 18px; }
.auth-link-button { border: 0; background: none; color: var(--primary); text-decoration: underline; font: inherit; cursor: pointer; }
.auth-notice { padding: 14px 16px; border-radius: 12px; background: var(--rose-50); font-size: .86rem; line-height: 1.6; margin-bottom: 20px; }
@media(max-width: 480px) { .auth-entry { padding-top: 20px; } .auth-entry-card { padding: 20px 8px; } .auth-entry-card h1 { font-size: 1.8rem; } .auth-phone-row { grid-template-columns: 116px minmax(0,1fr); } }


.auth-verify-icon .auth-method-icon { position: static; }

/* InputRadioGroup renders its labels without an HTML wrapper. Keep the
   compact email-registration choices readable at every viewport width. */
.auth-entry-card fieldset label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 10px; cursor: pointer; font-size: .86rem; line-height: 1.55; }
.auth-entry-card fieldset label:has(input:checked) { border-color: var(--primary); background: var(--rose-50); }
.auth-entry-card fieldset input { flex: none; margin-top: 4px; accent-color: var(--primary); }
.auth-entry-card fieldset strong { display: block; color: var(--text); }
