.apple-page {
  --apple-background: #fff;
  --apple-surface: #fff;
  --apple-text: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-border: #86868b;
  --apple-divider: #d2d2d7;
  --apple-blue: #0071e3;
  --apple-link: #0066cc;
  --apple-error: #b91c1c;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--apple-background);
  color: var(--apple-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.apple-page button, .apple-page input { font-family: inherit; }
.apple-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 12px 32px; border-bottom: 1px solid var(--apple-divider); }
.apple-header > div { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
.apple-header svg { width: 20px; height: 24px; }
.apple-header-actions { display: flex; align-items: center; gap: 20px; }
.apple-demo-toggle { padding: 4px 8px; border: 1px solid var(--apple-divider); border-radius: 999px; background: var(--apple-surface); color: var(--apple-muted); font-size: 11px; line-height: 16px; }
.apple-demo-toggle:hover { background: #f5f5f7; }
.apple-prototype-note { padding: 12px 24px 0; color: var(--apple-muted); font-size: 11px; line-height: 16px; text-align: center; }
.apple-card { width: 100%; max-width: 508px; padding: 44px 24px 48px; margin: auto; text-align: center; }
.apple-app-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 16px; background: #000; color: #fff; margin: 0 auto 22px; }
.apple-app-icon svg { width: 38px; height: 38px; }
.apple-brand { margin: 0 auto 20px; width: 24px; }
.apple-brand svg { width: 24px; height: 28px; }
.apple-card h1 { margin: 0 0 12px; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.5px; outline: 0; }
.apple-intro { margin: 0 auto 32px; max-width: 400px; font-size: 17px; line-height: 25px; }
.apple-form-content form { display: flex; flex-direction: column; align-items: stretch; }
.apple-field { display: block; position: relative; text-align: left; width: 100%; }
.apple-field input { display: block; width: 100%; height: 56px; padding: 23px 16px 7px; border: 1px solid var(--apple-border); border-radius: 12px; background: var(--apple-surface); color: var(--apple-text); outline: none; font-size: 17px; line-height: 24px; }
.apple-field > span { position: absolute; left: 17px; top: 16px; font-size: 17px; line-height: 24px; color: var(--apple-muted); pointer-events: none; transition: top .12s,font-size .12s; }
.apple-field input:focus, .apple-code-field input:focus { border-color: var(--apple-blue); box-shadow: 0 0 0 3px #0071e333; }
.apple-field input:focus + span, .apple-field input:not(:placeholder-shown) + span { top: 7px; font-size: 12px; line-height: 16px; }
.apple-field input[aria-invalid="true"], .apple-code-field input[aria-invalid="true"] { border-color: var(--apple-error); box-shadow: 0 0 0 2px #b91c1c1a; }
.apple-field input[readonly] { color: var(--apple-muted); background: #f5f5f7; }
.apple-credentials .apple-field:first-child input { border-radius: 12px 12px 0 0; }
.apple-credentials .apple-field:last-child { margin-top: -1px; }
.apple-credentials .apple-field:last-child input { border-radius: 0 0 12px 12px; }
.apple-credentials .apple-field:focus-within { z-index: 1; }
.apple-page a, .apple-link { color: var(--apple-link); }
.apple-link { align-self: center; background: none; border: 0; padding: 8px 0; margin: 8px 0 0; font-size: 14px; line-height: 20px; font-weight: 400; }
.apple-link:hover { text-decoration: underline; }
.apple-header .apple-link { margin: 0; }
.apple-primary, .apple-secondary { min-height: 48px; padding: 12px 20px; border-radius: 12px; font-size: 17px; line-height: 24px; font-weight: 400; }
.apple-primary { margin-top: 24px; color: #fff; background: var(--apple-blue); }
.apple-primary:hover { background: #0077ed; }
.apple-secondary { margin-top: 12px; background: #e8e8ed; color: #1d1d1f; }
.apple-secondary:hover { background: #dedee3; }
.apple-page button:disabled { opacity: .5; }
.apple-page button:active { transform: none; }
.apple-page button:focus-visible, .apple-page a:focus-visible { outline-color: var(--apple-blue); }
.apple-privacy { margin: 28px 0 0; font-size: 12px; line-height: 17px; color: var(--apple-muted); text-align: left; }
.apple-error { margin: 12px 0 0; padding: 12px; border: 1px solid #f4bbbb; border-radius: 8px; background: #fff2f2; color: var(--apple-error); font-size: 14px; line-height: 20px; text-align: left; }
.apple-password-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.apple-password-options .apple-link { margin: 0; padding: 0; }
.apple-check { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; cursor: pointer; }
.apple-check input { margin: 0; width: 16px; height: 16px; accent-color: var(--apple-blue); }
.apple-remember { justify-content: center; margin-top: 24px; }
.apple-step-icon { width: 64px; height: 64px; margin: 0 auto 28px; color: var(--apple-muted); }
.apple-step-icon svg { width: 100%; height: 100%; }
.apple-code-label { display: block; margin-bottom: 12px; font-size: 14px; }
.apple-code-field input { width: 100%; max-width: 312px; height: 60px; border: 1px solid var(--apple-border); border-radius: 10px; background: var(--apple-surface); color: var(--apple-text); text-align: center; padding: 10px 12px 10px 24px; font-size: 28px; letter-spacing: 12px; font-variant-numeric: tabular-nums; outline: none; }
.apple-code-field input::placeholder { color: #a1a1a6; opacity: .7; }
.apple-muted { margin-top: 16px; color: var(--apple-muted); font-size: 14px; line-height: 20px; }
.apple-code-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--apple-divider); }
.apple-status { margin: 12px 0 0; font-size: 13px; line-height: 19px; color: var(--apple-muted); }
.apple-account-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -12px 0 24px; font-size: 14px; }
.apple-account-line > span { overflow-wrap: anywhere; }
.apple-account-line .apple-link { margin: 0; }
.apple-email-choices { display: flex; flex-direction: column; padding: 0; border: 0; margin: 24px 0 0; text-align: left; }
.apple-email-choices legend { margin-bottom: 12px; font-size: 14px; color: var(--apple-muted); }
.apple-email-choice { display: flex; align-items: flex-start; gap: 12px; padding: 16px 12px; border: 1px solid var(--apple-divider); cursor: pointer; }
.apple-email-choice:first-of-type { border-radius: 12px 12px 0 0; }
.apple-email-choice:last-of-type { margin-top: -1px; border-radius: 0 0 12px 12px; }
.apple-email-choice:has(input:checked) { background: #f5f9ff; }
.apple-email-choice input { width: 18px; height: 18px; flex: none; margin: 3px 0 0; accent-color: var(--apple-blue); }
.apple-email-choice strong, .apple-email-choice small { display: block; overflow-wrap: anywhere; }
.apple-email-choice strong { font-weight: 500; font-size: 16px; line-height: 24px; }
.apple-email-choice small { color: var(--apple-muted); font-size: 13px; line-height: 19px; margin-top: 2px; }
.apple-relay-info { margin-top: 12px; padding: 12px; background: #f5f5f7; border-radius: 8px; text-align: left; color: var(--apple-muted); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.apple-relay-info strong { font-weight: 500; }
.apple-demo-account { display: flex; align-items: center; flex-direction: column; gap: 8px; margin: 24px 0 8px; font-size: 16px; }
.apple-demo-account > span:last-child { font-size: 14px; color: var(--apple-muted); }
.apple-avatar { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: #e8e8ed; color: #6e6e73; font-size: 28px; }
.apple-passkey-note, .apple-recovery-result { margin: 20px 0 0; color: var(--apple-muted); font-size: 15px; line-height: 23px; }
.apple-recovery-result strong { overflow-wrap: anywhere; }
.apple-loading { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--apple-muted); font-size: 13px; }
.apple-loading .spinner { border-color: #0071e330; border-top-color: var(--apple-blue); }
.apple-footer { display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 20px 24px 28px; border-top: 1px solid var(--apple-divider); color: var(--apple-muted); font-size: 11px; line-height: 16px; text-align: center; }
.apple-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.apple-footer a { color: var(--apple-muted); }
/* Apple's observed web account entry stays light, independent of the X theme. */
.apple-page { color-scheme: light; }
.apple-auth > .demo-toggle { display: none; }
@media(max-width:600px) {
  .apple-header { padding: 10px 20px; min-height: 56px; }
  .apple-header > div { font-size: 18px; }
  .apple-card { padding-top: 28px; padding-bottom: 40px; }
  .apple-card h1 { font-size: 26px; }
  .apple-prototype-note { font-size: 10px; }
  .apple-footer { padding-bottom: 44px; }
}
@media(max-width:360px) { .apple-header { padding-inline: 16px; gap: 12px; } .apple-header > div { font-size: 16px; gap: 8px; } .apple-header-actions { gap: 12px; } .apple-card { padding-inline: 20px; } .apple-password-options { flex-wrap: wrap; justify-content: center; } .apple-code-field input { font-size: 24px; letter-spacing: 9px; padding-left: 21px; } }
@media(max-height:720px) and (min-width:601px) { .apple-card { padding-top: 24px; } .apple-brand { display: none; } }
