/* Approved Warm welkom concept. Authentication only; mobile-first. */
.auth-experience { background: #fff; color: #18191c; }
.auth-shell { width: 100%; max-width: 540px; margin: 0 auto; background: #fff; isolation: isolate; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 16px 24px; }
.auth-brand { color: #0b0b0c; font-size: 1.45rem; font-weight: 800; letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.auth-brand span { color: #4933b6; }
.auth-help { display: inline-flex; align-items: center; min-height: 44px; color: #414756; font-size: .8rem; text-underline-offset: 4px; }
.auth-help:hover { text-decoration: underline; }
.auth-welcome { display: flex; flex-direction: column; }
.auth-panel { position: relative; z-index: 1; min-width: 0; padding: 28px 24px 20px; }
.auth-panel-content { width: 100%; }
.auth-experience h1 { margin: 0; color: #0b0b0c; font-size: 1.85rem; font-weight: 750; letter-spacing: -.045em; line-height: 1.12; }
.auth-intro { margin-top: 12px; color: #414756; font-size: .98rem; line-height: 1.55; }
.auth-entry-form { margin-top: 28px; }
.auth-entry-form label:not(.sr-only) { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 550; }
.auth-input { display: block; width: 100%; min-width: 0; height: 52px; padding: 12px 16px; border: 1px solid #8991a0; border-radius: 9px; background: #fff; color: #18191c; font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 1.5; transition: border-color 160ms, box-shadow 160ms; }
.auth-input::placeholder { color: #606775; opacity: 1; }
.auth-input:focus { outline: none; border-color: #7763cb; box-shadow: 0 0 0 4px #eee9fd; }
.auth-input[aria-invalid=true] { border-color: #a84b38; }
.auth-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 16px; padding: 13px 20px; border: 1px solid transparent; border-radius: 999px; background: #0b0b0c; color: #fff; font-size: .92rem; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background 180ms, box-shadow 180ms, transform 180ms; }
.auth-button > svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform 180ms; }
.auth-button:hover { background: #29272f; box-shadow: 0 4px 12px #1f173518; }
.auth-button:hover > svg { transform: translateX(3px); }
.auth-button:active { transform: translateY(1px); }
.auth-button.is-submitting > svg { display: none; }
.auth-hint { margin-top: 18px; color: #606775; font-size: .81rem; line-height: 1.6; }
.auth-reassurance { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #ecedf0; color: #414756; font-size: .79rem; line-height: 1.55; }
.auth-reassurance > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #e0f3e9; color: #194a38; }
.auth-reassurance svg { width: 20px; height: 20px; }
.auth-account-switch { margin-top: 24px; font-size: .85rem; color: #414756; line-height: 1.6; }
.auth-experience :is(.auth-account-switch,.auth-code-links,.auth-policy) a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #a2a2ad; transition: color 160ms, text-decoration-color 160ms; }
.auth-experience :is(.auth-account-switch,.auth-code-links,.auth-policy) a:hover { color: #4933b6; text-decoration-color: currentColor; }
.auth-policy { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; color: #606775; font-size: .75rem; }
.auth-policy a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-policy > span { color: #bec0c9; }
.auth-photo { position: relative; min-width: 0; height: 240px; overflow: hidden; background: #e4d4b9; }
.auth-photo picture, .auth-photo img { display: block; width: 100%; height: 100%; }
.auth-photo img { object-fit: cover; object-position: center; }
.auth-photo-copy { display: none; }
.auth-photo-orbit { position: absolute; right: -24px; top: 24px; display: flex; align-items: center; justify-content: center; width: 150px; height: 150px; padding: 24px 30px 24px 22px; border-radius: 50%; background: #e9e4fd; color: #332c64; font-size: .88rem; line-height: 1.45; text-align: center; }
.auth-hand { font-family: var(--font-hand, 'Caveat', cursive); font-weight: 500; line-height: 1.2; }
.auth-hand svg { display: block; width: 65%; height: 20px; margin: 2px auto 0; }
.auth-footer { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 22px 24px; color: #606775; text-align: center; font-size: .76rem; }
.auth-family { max-width: 390px; }
.auth-family summary { display: inline-block; min-height: 36px; padding-top: 8px; list-style: none; text-decoration: underline; text-underline-offset: 4px; }
.auth-family summary::-webkit-details-marker { display: none; }
.auth-family p { padding-block: 8px; line-height: 1.6; }
.auth-alert { margin-top: 24px; padding: 14px 16px; border: 1px solid #dfb6a8; background: #fff5ef; color: #783923; font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.auth-alert--test { border-style: dashed; color: #414756; background: #f6f5f2; }
.auth-confirm { position: relative; overflow: hidden; padding: 4px 24px 24px; }
.auth-confirm > :not(.auth-almost) { position: relative; z-index: 1; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -6px; color: #606775; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.auth-back svg { width: 18px; height: 18px; }
.auth-envelope { display: grid; place-items: center; width: 72px; height: 72px; margin: 18px 0 24px; border-radius: 50%; background: #eee9fe; color: #392d87; }
.auth-envelope svg { width: 62px; height: 56px; }
.auth-destination { margin-top: 12px; color: #353849; font-size: .86rem; font-weight: 500; overflow-wrap: anywhere; }
.auth-experience .auth-input--code { height: 64px; padding-inline: 12px; text-align: center; font-size: 1.55rem; letter-spacing: .5em; text-indent: .5em; font-variant-numeric: tabular-nums; }
.auth-input--code::placeholder { color: #8991a0; }
.auth-code-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 24px; font-size: .85rem; }
.auth-code-links a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-almost { position: absolute; right: -30px; bottom: -36px; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; width: 170px; height: 170px; border-radius: 50%; background: #e9e4fd; color: #392d87; padding: 34px 28px 0 12px; font-size: 1.6rem; transform: rotate(-7deg); }
.auth-confirm .auth-policy { margin-top: 48px; }
@media (min-width: 420px) {
  .auth-header { padding-inline: 32px; }
  .auth-panel { padding: 32px 32px 22px; }
  .auth-experience h1 { font-size: 2rem; }
  .auth-confirm { padding-inline: 32px; }
}
@media (min-width: 576px) {
  .auth-experience { min-height: 100svh; padding: 32px 24px 12px; background: #f6f5f2; }
  .auth-shell { border: 1px solid #dededc; border-radius: 24px; box-shadow: 0 10px 45px #342d2010, 0 2px 8px #342d2005; overflow: hidden; margin-top: auto; }
  .auth-header { min-height: 72px; border-bottom: 1px solid #f1f0ed; }
  .auth-panel { padding: 36px 40px 24px; }
  .auth-footer { margin-bottom: auto; }
  .auth-confirm { padding: 4px 48px 28px; }
}
@media (min-width: 900px) {
  .auth-experience { padding: 40px 32px 20px; }
  .auth-shell { max-width: 1200px; }
  .auth-header { min-height: 64px; padding: 8px 28px; }
  .auth-welcome { display: grid; grid-template-columns: 55% minmax(0, 1fr); min-height: 610px; }
  .auth-panel { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 40px 24px; }
  .auth-panel-content { margin-block: auto; }
  .auth-panel .auth-policy { justify-content: flex-end; margin-top: 32px; }
  .auth-photo { grid-column: 1; grid-row: 1; height: auto; min-height: 610px; }
  .auth-photo picture { position: absolute; inset: 0; }
  .auth-photo img { object-position: center 45%; }
  .auth-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #17181065, #17181000 75%); }
  .auth-photo-copy { position: absolute; z-index: 1; left: 36px; top: 30%; display: block; max-width: 70%; color: #fff; }
  .auth-photo-copy > p { font-size: clamp(1.85rem, 2.6vw, 2.3rem); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; text-shadow: 0 1px 10px #17181035; }
  .auth-photo-copy .auth-hand { display: block; margin-top: 22px; font-size: 1.7rem; transform: rotate(-5deg); }
  .auth-photo-orbit { z-index: 1; width: 132px; height: 280px; top: 58px; right: -84px; border-radius: 50%; font-size: 0; padding: 0; }
  .auth-footer { flex-direction: row; align-items: flex-start; justify-content: space-between; padding: 24px 8px 8px; text-align: left; }
  .auth-family { text-align: right; }
  .auth-family summary { padding-top: 0; }
  .auth-experience--code .auth-shell { max-width: 540px; }
  .auth-experience--code .auth-footer { justify-content: center; }
  .auth-confirm { padding-top: 12px; }
}
@media (min-width: 1100px) {
  .auth-panel { padding-inline: 56px; }
  .auth-experience h1 { font-size: 2.15rem; }
  .auth-photo-copy { left: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-panel-content, .auth-confirm { animation: auth-arrive 360ms cubic-bezier(.22,1,.36,1); }
  .auth-photo img { animation: auth-photo-arrive 800ms cubic-bezier(.22,1,.36,1); }
  @keyframes auth-arrive { from { opacity: .65; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
  @keyframes auth-photo-arrive { from { opacity: .8; scale: 1.025; } to { opacity: 1; scale: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .auth-experience *, .auth-experience *::after { transition: none !important; animation: none !important; }
}
