/* Registration on the shared St. Maria theme (theme.css): an enrolment form pinned to the tartan. Classes driven by register.js. */
main { position: relative; max-width: 620px; margin: 46px auto 60px; padding: 34px 40px 30px; background: var(--paper); color: var(--ink);
  border-top: 6px solid var(--red); transform: rotate(-.35deg);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(36,48,75,.06) 27px 28px);
  box-shadow: 3px 4px 0 rgba(0,0,0,.2), 0 24px 34px -16px rgba(0,0,0,.6); }
main::before { content: ""; position: absolute; top: -14px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E8888F, var(--red) 60%, var(--red-deep)); box-shadow: 1px 3px 3px rgba(0,0,0,.35); }
.stamp { position: absolute; right: 26px; top: 26px; transform: rotate(8deg); border: 2px solid var(--red); color: var(--red); padding: 3px 9px;
  font-family: var(--label); font-size: 10px; letter-spacing: .16em; opacity: .65; }
.reg-head h1 { font-size: 30px; line-height: 1.25; margin: 10px 0 6px; }
.intro { font-family: var(--type); font-variation-settings: "wdth" 75; color: var(--muted); margin: 0 0 22px; }
h2 { font-size: 20px; }
p { margin: 0 0 14px; line-height: 1.75; }

.steps { display: flex; gap: 22px; list-style: none; margin: 0 0 26px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.steps li { display: flex; gap: 8px; align-items: center; }
.steps span { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--line); border-radius: 50%; font-family: var(--label); font-size: 12px; }
.steps [aria-current="step"] { color: var(--red-deep); font-weight: 700; }
.steps [aria-current="step"] span { background: var(--red); border-color: var(--red); color: var(--cream); }

.mailbox-field { display: flex; border: 1.5px solid rgba(74,48,42,.24); border-radius: 4px; overflow: hidden; background: var(--cream); }
.mailbox-field input { border: 0 !important; border-radius: 0; flex: 1 1 130px; width: 0; }
.mailbox-field span { display: flex; align-items: center; padding: 0 12px; font-family: var(--type); font-variation-settings: "wdth" 75; font-size: 13px; color: var(--red); white-space: nowrap; }
.mailbox-field:focus-within { border-color: var(--red); }
.mailbox-field input:focus-visible { outline: none; }
.password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-status { font-size: 12.5px; min-height: 18px; margin: 5px 0 0; color: var(--muted); }
.field-status[data-state="available"] { color: var(--green); font-weight: 700; }
.field-status[data-state="unavailable"] { color: var(--red); font-weight: 700; }
#invitation-code { font-family: var(--type); font-variation-settings: "wdth" 75; letter-spacing: .06em; text-transform: uppercase; }

.primary { width: 100%; margin-top: 24px; min-height: 46px; font-size: 15px; }
.notice { padding: 16px 18px; background: var(--gold-soft); color: var(--brown); margin: 18px 0; box-shadow: 2px 3px 0 rgba(0,0,0,.15); }
.notice h2 { font-size: 17px; color: var(--red-deep); }
.notice p:last-child { margin-bottom: 0; }
.captcha-panel { margin-top: 22px; max-width: 100%; }
#captcha-widget { min-height: 65px; max-width: 100%; overflow: hidden; }
.captcha-panel .text-button { font-size: 12px; margin-top: 4px; }
.status { margin: 20px 0 0; }

.mailbox-summary { background: var(--cream); padding: 12px 16px; font-size: 13px; color: var(--brown); overflow-wrap: anywhere; border-left: 4px solid var(--red); }
.mailbox-summary strong { display: block; color: var(--red-deep); margin-top: 3px; font-family: var(--type); font-variation-settings: "wdth" 75; font-size: 16px; }
#masked-recovery-email { overflow-wrap: anywhere; }
.code-input { font-family: var(--type); font-variation-settings: "wdth" 75; font-size: 26px !important; letter-spacing: .3em; max-width: 280px; text-align: center; }
.resend-section { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); }
.resend-section > .help { margin-top: 0; }
.resend-section .captcha-panel { margin-top: 12px; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }

footer { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
footer p { margin: 0; }
main > .goose { width: 92px; right: -58px; bottom: -26px; transform: rotate(7deg); }

@media (max-width: 760px) { main > .goose { right: -6px; bottom: -40px; width: 72px; } }
@media (max-width: 540px) {
  main { margin: 34px 12px 60px; padding: 30px 20px 26px; transform: none; }
  .stamp { top: 14px; right: 14px; }
  .reg-head h1 { font-size: 26px; margin-top: 18px; }
  .password-grid { grid-template-columns: 1fr; gap: 0; }
  .mailbox-field span { font-size: 12px; padding: 0 8px; }
  .steps { gap: 16px; }
}
@media (max-width: 360px) {
  .mailbox-field { flex-wrap: wrap; }
  .mailbox-field input { flex-basis: 100%; width: 100%; }
  .mailbox-field span { width: 100%; padding: 7px 12px; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
