/* Shared account entry: quiet form, clear choices, no floating chrome. */
body.pd-journey-auth { background:var(--surface) !important; }
body.pd-journey-auth #ai-chat-widget { display:none !important; }
.auth-entry-header { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:48px; }
.auth-entry-logo { display:inline-flex; align-items:center; }
.auth-entry-logo img { display:block; width:144px; height:auto; }
.auth-help-link { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; color:var(--text-secondary); font-size:14px; font-weight:600; text-decoration:none; }
.auth-help-link:hover { color:var(--brand-deep-purple); text-decoration:underline; }
.auth-entry-legal { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px; margin-top:28px; color:var(--text-muted); font-size:12px; line-height:20px; }
.auth-entry-legal a { display:inline-flex; align-items:center; min-height:44px; color:inherit; text-decoration:none; }
.auth-entry-legal a:hover { color:var(--text); text-decoration:underline; }

/* Illustration and copy form one compact introduction above the two choices. */
.auth-entry-choice { box-sizing:border-box; width:100%; max-width:440px; margin:0 auto; padding:20px 24px 16px; color:var(--text); }
.auth-entry-hero { margin-top:24px; padding:28px 16px 0; border-radius:24px; background:var(--pastel-purple); text-align:center; overflow:hidden; }
#auth-entry-choice #auth-entry-title { margin:0; font-size:30px !important; line-height:38px !important; letter-spacing:-.7px !important; }
.auth-entry-hero p { margin:12px 0 0; color:var(--text-secondary); font-size:14px; line-height:22px; }
.auth-entry-art { display:block; width:100%; max-width:290px; height:auto; margin:12px auto 0; }
.auth-entry-options { display:grid; gap:12px; margin-top:24px; }
.auth-entry-options > a { display:flex; align-items:center; gap:16px; box-sizing:border-box; min-height:60px; padding:14px 18px; border:1px solid var(--border-strong); border-radius:12px; text-decoration:none; transition:background .15s ease,border-color .15s ease; }
.auth-entry-options > a > span { flex:1; min-width:0; }
.auth-entry-options strong { display:block; font-size:16px; line-height:24px; font-weight:600; }
.auth-entry-options svg { flex:0 0 24px; width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.auth-entry-options .auth-entry-arrow { width:20px; height:20px; flex-basis:20px; }
.auth-entry-options .auth-entry-primary { background:var(--btn-action-bg); color:var(--btn-action-fg); border-color:transparent; }
.auth-entry-options .auth-entry-primary:hover { background:var(--btn-action-hover); }
.auth-entry-options .auth-entry-secondary { background:var(--surface); color:var(--interaction-ink); border-color:var(--interaction-border); }
.auth-entry-options .auth-entry-secondary:is(:hover,:focus-visible) { background:var(--interaction-bg); border-color:var(--interaction-border); }
.auth-entry-choice .auth-entry-legal { margin-top:12px; }

/* Keep the existing email, password, signup and verification step contracts. */
#auth-online { min-height:100dvh; }
#auth-online .signup-form-column { padding:32px 40px 28px; }
#auth-online .auth-col { max-width:400px; }
#auth-online .signup-topbar { margin-bottom:44px; }
#auth-online .auth-glass { padding:0; border:0; border-radius:0; box-shadow:none; overflow:visible; }
#auth-online .auth-glass::before { display:none; }
#auth-online #auth-title { margin:0; font-size:28px !important; line-height:36px !important; letter-spacing:-.5px !important; }
#auth-online #auth-subtitle { margin:10px 0 28px; color:var(--text-muted); font-size:14px; line-height:22px; }
#auth-online :is(.btn-grad,.btn-soft,.social-tile) { min-height:50px; height:auto; padding:12px 16px; border-radius:8px; font-size:14px; line-height:24px; font-weight:600; box-shadow:none !important; filter:none; }
#auth-online .btn-grad { border:0; }
#auth-online .social-tile { position:relative; background:var(--surface); color:var(--text); border:1px solid var(--border-strong); }
#auth-online .social-tile svg { position:absolute; left:18px; width:20px; height:20px; }
#auth-online .social-tile:hover { background:var(--surface-canvas); border-color:var(--text-muted); }
#auth-online .btn-soft { min-height:44px; height:auto; border:1px solid var(--interaction-border); background:var(--surface); color:var(--interaction-ink); font-size:14px; font-weight:600; line-height:20px; }
#auth-online .btn-soft:is(:hover,:focus-visible):not(:disabled,[aria-disabled="true"]) { background:var(--interaction-bg); border-color:var(--interaction-border); }
#auth-online .btn-soft:focus-visible { outline:2px solid var(--interaction-border); outline-offset:3px; }
#auth-online .auth-social-options { display:grid; gap:10px; }
#auth-online #step-email .auth-rule { margin:24px 0; }
#auth-online #auth-flip-email { margin:24px 0 0; font-size:13px; line-height:22px; }
#auth-online #auth-flip-email a, #auth-online #auth-flip a { color:var(--brand-deep-purple) !important; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
#auth-online #auth-flip:empty { display:none; }
#auth-online .email-pill { background:var(--surface-canvas); border-color:var(--border); border-radius:8px; }
#auth-online .email-avatar { background:var(--pastel-purple); color:var(--brand-deep-purple); border-radius:8px; }
#auth-online .edit-link { color:var(--brand-deep-purple); }
#auth-online .check-text { font-size:13px; line-height:20px; }
#auth-online .check-row { align-items:flex-start; }
#auth-online .signup-welcome { background:var(--pastel-purple); }

/* Signup is one form card with a shared alignment for each section. */
#auth-online:has(#step-signup:not(.hidden)) .auth-col { max-width:488px; }
#auth-online:has(#step-signup:not(.hidden)) .signup-topbar { margin-bottom:20px; }
#auth-online:has(#step-signup:not(.hidden)) .auth-glass { padding:24px; border:2px solid var(--border); border-radius:16px; background:var(--surface); }
#auth-online:has(#step-signup:not(.hidden)) #auth-title { font-weight:600; }
#auth-online:has(#step-signup:not(.hidden)) #auth-subtitle { margin-top:8px; margin-bottom:16px; }
#auth-online .auth-banner-info { background:var(--surface-canvas); border-color:var(--border); color:var(--text-secondary); }
#auth-online .signup-email-summary { gap:12px; padding:0 0 16px; margin-bottom:16px; border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent; }
#auth-online .signup-email-summary .email-avatar { flex:none; width:36px; height:36px; }
#auth-online .signup-email-copy { min-width:0; }
#auth-online .signup-email-label { display:block; margin-bottom:2px; color:var(--text-muted); font-size:var(--text-sm); line-height:1.5; }
#auth-online #display-signup-email { display:block; color:var(--text); font-size:var(--text-base); line-height:1.5; font-weight:600; overflow-wrap:anywhere; }
#auth-online .signup-email-summary .edit-link { flex-shrink:0; min-width:44px; min-height:44px; padding:8px; font-size:var(--text-sm); }
#auth-online #signup-role-fields { min-width:0; padding:0 0 16px; margin:0 0 16px; border:0; border-bottom:1px solid var(--border); }
#auth-online #signup-role-fields legend { margin-bottom:8px; font-size:var(--text-base); font-weight:700; }
#auth-online .signup-role-options { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
#auth-online .signup-role-option { display:flex; align-items:center; gap:12px; box-sizing:border-box; max-width:100%; min-height:56px; margin:0; padding:4px 0; border:0; border-radius:0; background:transparent; box-shadow:none; outline:0; cursor:pointer; }
#auth-online .signup-role-answer { display:flex; align-items:flex-start; gap:8px; min-width:0; }
#auth-online .signup-role-option input { flex:none; width:18px; height:18px; margin:3px 0 0; }
#auth-online .signup-role-option input:focus-visible { outline:2px solid var(--brand-purple); outline-offset:3px; }
@layer product-selection {
  #auth-online #form-signup label:has(input:focus-visible) { outline:none !important; }
  #auth-online .signup-role-option input { margin:3px 0 0 !important; }
  #auth-online #form-signup .field-input:focus-visible { background:var(--surface) !important; }
  #auth-online #form-signup .field-input:not([aria-invalid="true"],.is-invalid,.invalid,.error,.sl-input-error) { border-color:var(--brand-purple) !important; }
}
#auth-online .signup-role-title { min-width:0; color:var(--text); font-size:var(--text-base); line-height:1.5; font-weight:400; }
#auth-online .signup-role-art { display:block; flex:none; width:60px; height:48px; object-fit:contain; }
#auth-online #signup-role-help { display:flex; align-items:baseline; gap:7px; margin:8px 0 0; color:var(--text-muted); font-size:var(--text-sm); line-height:1.5; }
#auth-online #signup-role-help i { flex-shrink:0; font-size:12px; }
#auth-online #signup-name-fields { gap:12px; margin-bottom:16px; }
#auth-online #form-signup .field-label { margin-bottom:4px; font-size:var(--text-base); line-height:1.5; font-weight:600; }
#auth-online #form-signup #signup-role-fields legend { margin-bottom:8px; font-weight:700; }
#auth-online #form-signup .field-input { height:auto; min-height:48px; font-size:var(--text-base) !important; line-height:1.5; padding-top:10px; padding-bottom:10px; background:var(--surface); }
#auth-online #form-signup .field-input::placeholder { font-size:var(--text-sm); }
#auth-online #form-signup .field-eye { min-width:44px; min-height:44px; right:2px; }
#auth-online #form-signup .check-row { min-height:44px; margin:0; padding:8px 0; }
#auth-online #form-signup .check-text { font-size:var(--text-sm); line-height:1.5; font-weight:400; }
#auth-online #security-fields { padding:16px; }
#auth-online #signup-verification-dialog { width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:2px solid var(--border); border-radius:16px; background:var(--surface); color:var(--text); overflow:auto; overscroll-behavior:contain; }
#auth-online #signup-verification-dialog::backdrop { background:color-mix(in srgb,var(--text) 48%,transparent); }
body:has(#signup-verification-dialog[open]) { overflow:hidden; }
#auth-online .signup-verification-header { position:sticky; top:0; z-index:1; display:flex; align-items:center; gap:12px; padding:12px 16px; background:linear-gradient(100deg,var(--brand-purple-fill-1),var(--brand-purple-fill-2)); color:var(--text-on-dark); }
#auth-online .signup-verification-header img { flex:none; width:48px; height:48px; object-fit:contain; }
#auth-online #signup-verification-title { flex:1; min-width:0; margin:0; font-size:1.375rem; line-height:1.4; font-weight:600; color:inherit; }
#auth-online .signup-verification-close { display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:44px; min-height:44px; padding:8px; border:0; border-radius:6px; background:transparent; color:inherit; font-size:24px; line-height:1; cursor:pointer; }
#auth-online .signup-verification-close:is(:hover,:focus-visible) { background:color-mix(in srgb,var(--surface) 18%,transparent); }
#auth-online .signup-verification-actions { display:flex; justify-content:flex-end; margin-top:16px; }
#auth-online #form-signup .signup-verification-actions .btn-grad { width:auto; max-width:100%; padding:10px 12px; }
#auth-online #signup-verification-dialog .signup-delivery-options { flex-direction:column; align-items:flex-start; }
#auth-online #signup-verification-dialog .signup-code-panel { padding:16px 0 0; margin:16px 0; border:0; border-top:1px solid var(--border); border-radius:0; }
#auth-online .signup-delivery-fields { min-width:0; margin:0 0 8px; padding:0; border:0; }
#auth-online #form-signup .signup-delivery-fields legend { font-weight:700; }
#auth-online .signup-delivery-options { display:flex; flex-wrap:wrap; gap:4px 12px; }
#auth-online .signup-delivery-option { display:flex; align-items:flex-start; gap:8px; min-height:44px; margin:0; padding:10px 0; cursor:pointer; }
#auth-online .signup-delivery-option span { font-size:var(--text-base); font-weight:400; line-height:1.5; }
@layer product-selection {
  #auth-online .signup-delivery-option input { margin:3px 0 0 !important; }
}
#auth-online #signup-code-intro { font-size:var(--text-sm); line-height:1.5; }
#auth-online #form-signup .btn-grad { min-height:48px; border-radius:999px; background:var(--btn-primary-bg) !important; color:var(--btn-primary-fg) !important; font-size:var(--text-base); font-weight:600; transition:background-color .4s ease,color .4s ease; }
#auth-online #form-signup .btn-grad:is(:hover,:focus-visible):not(:disabled) { background:var(--btn-primary-hover) !important; color:var(--btn-primary-hover-fg) !important; transform:none; }
#auth-online #signup-promo { margin-top:10px; }
#auth-online .signup-code-panel { padding:18px; margin-bottom:20px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
#auth-online .signup-code-panel h2 { margin:0 0 8px; font-size:18px; line-height:26px; font-weight:700; }
#auth-online #signup-code-status { margin:0 0 16px; font-size:14px; line-height:22px; overflow-wrap:anywhere; }
#auth-online #signup-email-code { letter-spacing:0.2em; font-size:22px; }
#auth-online #signup-code-error { color:var(--danger); margin-top:10px; }
#auth-online #signup-resend-code:disabled { opacity:0.6; cursor:default; }
#auth-online #promo-collapsed { min-height:44px; padding:8px; color:var(--text-secondary); font-size:var(--text-sm); }
#auth-online #promo-expanded { padding:14px; border:1px solid var(--border); border-radius:10px; background:var(--surface-canvas); }
#auth-online #auth-flip:not(:empty) { margin-top:16px; padding-top:0; font-size:var(--text-sm); line-height:1.5; }
#auth-online #auth-flip a { display:inline-flex; align-items:center; min-height:44px; }

/* Applicant continuation reuses signup with the known details collapsed. */
body.applicant-account #auth-online { display:flex; justify-content:center; }
body.applicant-account #auth-online .signup-form-column { width:100%; max-width:520px; }
body.applicant-account #signup-showcase { display:none; }
body.applicant-account #auth-subtitle:empty { display:none; }
body.applicant-account #auth-online #auth-title { margin-bottom:24px; }
body.applicant-account #auth-online .btn-grad { background:var(--btn-action-bg); color:var(--btn-action-fg); }
body.applicant-account #auth-online .btn-grad:hover { background:var(--btn-action-hover); }
body.applicant-account #auth-online .field-input { border-color:var(--brand-purple); }
body.applicant-account #auth-online .edit-link { min-height:44px; padding:8px; flex-shrink:0; }
.applicant-saved-name { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; margin-bottom:20px; border-radius:var(--radius-md); background:var(--menu-lavender); }
.applicant-saved-name[hidden] { display:none; }
.applicant-saved-name > div { min-width:0; }
.applicant-saved-name strong { display:block; font-size:16px; line-height:24px; font-weight:600; overflow-wrap:anywhere; }
.applicant-saved-label { display:block; margin-bottom:2px; font-size:12px; line-height:18px; color:var(--text-muted); }

@media (max-width:767px) {
  #auth-online { min-height:0; display:block; }
  #auth-online .signup-welcome { display:none; }
  #auth-online .signup-form-column { padding:20px 24px 12px; }
  #auth-online .signup-topbar { margin-bottom:36px; }
  #auth-online:has(#step-signup:not(.hidden)) .auth-glass { padding:0; border:0; }
  #auth-online:has(#step-signup:not(.hidden)) .signup-topbar { margin-bottom:24px; }
  #auth-online :is(#step-email,#step-login,#step-signup,#step-login-2fa) :is(input,select,textarea) { font-size:16px !important; }
  body.pd-journey-auth #cookie-consent-banner { position:relative; left:auto; bottom:auto; transform:none; width:calc(100% - 32px); max-width:432px; margin:20px auto 16px; flex-shrink:0; }
  body.pd-journey-auth #cookie-consent-banner .cookie-glass { padding:18px !important; }
  body.pd-journey-auth #cookie-consent-banner .cookie-stagger[data-stagger="0"] > p { font-size:15px !important; line-height:22px !important; }
  body.pd-journey-auth #cookie-consent-banner .cookie-stagger[data-stagger="1"] p { font-size:12px !important; line-height:19px !important; }
  body.pd-journey-auth #cookie-consent-banner .cookie-stagger[data-stagger="2"] { margin-top:14px !important; }
  body.pd-journey-auth #cookie-consent-banner .cookie-popup-card { box-shadow:none; }
}
@media (max-width:359px) {
  #auth-online .signup-verification-header img { display:none; }
  #auth-online .signup-verification-header { gap:8px; padding:12px; }
  #auth-online #signup-verification-title { font-size:1.25rem; }
  .auth-entry-choice, #auth-online .signup-form-column { padding-left:20px; padding-right:20px; }
  .auth-entry-hero { padding-top:22px; }
  #auth-entry-choice #auth-entry-title { font-size:27px !important; line-height:34px !important; }
  .auth-entry-options > a { padding-left:14px; padding-right:14px; gap:12px; }
}
@media (max-width:520px) {
  #auth-online .signup-email-summary .email-avatar { display:none; }
  #auth-online .signup-role-art { width:50px; height:40px; }
  #auth-online #signup-name-fields { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) { .auth-entry-options > a, #auth-online #form-signup .btn-grad { transition:none; } }
