/* The 4-screen sign-up (shared/signup-contract.js): a bar for each screen, a title, one line under it, then the fields.
   Same order and words as the iPhone and iPad app. Colours follow the sign-up popup (gold on the landing page). */
.account-card .account-kicker-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.account-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 14px; }
.account-progress[hidden] { display: none; }
.account-progress i { height: 5px; border-radius: 999px; background: var(--popup-edge, rgba(11, 40, 91, .14)); opacity: .55; transition: background-color .25s ease, opacity .25s ease; }
.account-progress i.is-on { opacity: 1; background: linear-gradient(90deg, #c99c50, #f2dba2); }
html body.is-logged-in .account-progress i.is-on { background: linear-gradient(90deg, #7a45f0, #397cff); }
.account-card .account-subtitle { margin: 6px 0 4px !important; color: var(--popup-muted, #52698f) !important; font-size: 15px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; line-height: 1.4; }
.account-card .account-subtitle[hidden] { display: none; }

/* About you: first and last name side by side. */
[data-account-step="identity"] .account-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
[data-account-step="identity"] .account-fields > :not(.account-field:nth-child(-n+2)) { grid-column: 1 / -1; }

/* Username: "✓ Available" sits inside the box on the right; "Someone already has this username" shows below in red. */
[data-account-step="identity"] .account-field:has(#account-handle-status) { position: relative; }
#account-handle-status { display: block; min-height: 0; font-size: 13px; font-weight: 700; }
#account-handle-status[data-state="free"] { position: absolute; right: 14px; bottom: 15px; color: #15803d !important; pointer-events: none; }
html[data-theme="dark"] #account-handle-status[data-state="free"] { color: #4ade80 !important; }
#account-handle-status[data-state="taken"] { margin-top: 6px; color: #c2334f !important; }
html[data-theme="dark"] #account-handle-status[data-state="taken"] { color: #ff8fa6 !important; }
[data-account-step="identity"] .account-field:has(#account-handle-status[data-state="free"]) input { padding-right: 112px; }

.account-card .account-have-account { display: block; margin: 10px auto 0; font-weight: 700; }
.account-card .account-have-account[hidden] { display: none; }
/* The title takes focus when a screen opens (for screen readers); it is not a button, so no box is drawn. */
.account-card h2[tabindex="-1"]:focus, .account-card h2:focus { outline: none !important; box-shadow: none !important; }

/* Join Spossity: one box for email or phone number; the country code list shows in front when a number is typed. */
.account-contact-control { display: grid; grid-template-columns: 1fr; gap: 8px; }
.account-contact-control.has-dial { grid-template-columns: minmax(104px, auto) 1fr; }
.account-contact-control select[hidden] { display: none; }
.account-phone-control { display: block; }
.account-phone-control[hidden] { display: none; }
.account-field:has([data-email-confirm-new-phone]:not([hidden])) { display: grid; grid-template-columns: minmax(104px, auto) 1fr; column-gap: 8px; }
.account-field:has([data-email-confirm-new-phone]:not([hidden])) > label { grid-column: 1 / -1; }
.account-field:has([data-email-confirm-new-phone]:not([hidden])) .account-phone-control select { width: 100%; height: 100%; }

/* Date of birth: day, month, year side by side. */
.account-birth-control.has-day { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1fr); }
