/* Account screens share one calm, accessible visual language. */
.welcome-screen {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: max(32px, env(safe-area-inset-top)) 24px max(64px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 20% 0, rgba(75, 105, 231, .22), transparent 55%), linear-gradient(155deg, #090f25, #0d1835 58%, #171434);
}
.welcome-screen .welcome-content { max-width: 410px; margin-block: auto; }
.welcome-eyebrow { margin: 0 0 24px; color: #9ab9e9; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.welcome-screen .logo-tile { width: 96px; height: 96px; border-radius: 28px; background: linear-gradient(145deg, #1d3056, #171d39) !important; box-shadow: 0 20px 60px #02061066, inset 0 1px 0 #ffffff16; }
.welcome-screen .welcome-heading { margin-top: 26px; font-size: clamp(27px, 7vw, 36px) !important; line-height: 1.4 !important; letter-spacing: -.02em; text-wrap: balance; }
.welcome-screen .welcome-subtitle { margin-top: 12px; max-width: 330px; font-size: 14px !important; font-weight: 400 !important; line-height: 1.9 !important; color: #b7c6e2 !important; }
.welcome-screen .welcome-language-selector { width: 100%; max-width: 300px; justify-content: stretch; margin-top: 24px; padding: 4px; border-color: #b8cbff21; background: #06112788; }
.welcome-screen .welcome-language-option { flex: 1; min-height: 38px; padding: 4px 12px; font-size: 12px; }
.welcome-screen .welcome-language-option.active { background: #213d69; box-shadow: inset 0 0 0 1px #9dbdff23; }
.welcome-benefits { display: flex; justify-content: center; gap: 14px; width: 100%; margin-top: 22px; }
.welcome-benefits > span { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; max-width: 112px; color: #93b3df; }
.welcome-benefits svg { width: 17px; height: 17px; stroke-width: 1.6; }
.welcome-benefits b { color: #aebfdb; font-size: 10px; font-weight: 400; line-height: 1.7; text-wrap: balance; }
.welcome-screen .welcome-actions { margin-top: 26px; gap: 10px; }
.welcome-screen .welcome-button { min-height: 54px; border-radius: 15px; font-size: 14px !important; font-weight: 600 !important; }
.welcome-screen #create-account-button { background: linear-gradient(110deg, #536ee8, #438ee4) !important; box-shadow: 0 10px 30px #3c64dc28, inset 0 1px 0 #ffffff20; }
.welcome-screen .welcome-button-secondary { border-color: #b8cbff25; background: #17233e88 !important; box-shadow: none; }
.welcome-screen #preview-kurdassist { min-height: 44px; background: transparent !important; color: #a7bad9; font-size: 12px !important; }
.welcome-screen .welcome-footer { position: static; margin: 28px 0 0; color: #8193b7 !important; font-size: 11px !important; font-weight: 400 !important; }
.auth-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  min-height: 0;
  padding: max(22px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  overflow: hidden auto;
  background: radial-gradient(ellipse at 80% 0, #3345a81b, transparent 52%), #0b132a;
}
.auth-screen[hidden], .welcome-screen[hidden] { display: none; }
.auth-screen .auth-inner { width: 100%; max-width: 430px; margin-block: auto; flex: 0 0 auto; min-width: 0; }
.auth-screen .signup-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; }
.auth-screen .verification-back { width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #b4caff20; border-radius: 13px; background: #17264080; box-shadow: none; }
.auth-language-picker { display: flex; gap: 3px; padding: 3px; border: 1px solid #b4caff1e; border-radius: 12px; background: #07112466; direction: ltr; }
.auth-language-picker button { min-width: 38px; min-height: 34px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: #8fa5c9; font-size: 10px; font-weight: 700; cursor: pointer; }
.auth-language-picker button.active { color: #eaf2ff; background: #24395d; box-shadow: inset 0 0 0 1px #9dbdff18; }
.auth-language-picker button:hover:not(.active) { color: #d0e2ff; background: #182947; }
.auth-screen .auth-intro-icon { width: 54px; height: 54px; margin-top: 30px; display: grid; place-items: center; border: 1px solid #879dff35; border-radius: 17px; color: #b8ccff; background: linear-gradient(145deg, #283b69, #222744); box-shadow: 0 8px 25px #02071033, inset 0 1px 0 #ffffff12; }
.auth-intro-icon svg { width: 25px; height: 25px; stroke-width: 1.65; }
.auth-screen .auth-brand { margin: 18px 0 0; color: #8faee2; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: start; }
.auth-screen .signup-heading { margin: 8px 0 0; font-size: clamp(25px, 7vw, 32px); line-height: 1.45; letter-spacing: -.02em; color: #f4f7ff; text-wrap: balance; }
.auth-screen .signup-description { margin: 8px 0 0; color: #a7b8d7; font-size: 13px; font-weight: 400; line-height: 1.9; }
.auth-steps { display: flex; justify-content: space-between; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.auth-steps li { display: flex; align-items: center; justify-content: center; flex: 1; gap: 7px; min-width: 0; padding: 9px 5px; border: 1px solid #8da8d315; border-radius: 11px; color: #8193b4; background: #ffffff03; }
.auth-steps li > span { display: inline-grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border: 1px solid #a2b7da25; border-radius: 50%; font: 10px/1 sans-serif; direction: ltr; }
.auth-steps li > b { font-size: 10px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.auth-steps li.is-current { border-color: #7b9fe94d; color: #d6e6ff; background: #28457544; }
.auth-steps li.is-current > span { border-color: #8cb1ff66; background: #3c6098; color: white; }
.auth-steps li.is-complete { color: #a0d6d0; }
.auth-steps li.is-complete > span { border-color: #6bbeb64d; background: #30645e33; }
.auth-screen .auth-form { margin-top: 24px; gap: 18px; }
.auth-screen .field-label { margin-bottom: 8px; color: #d4e0f5; font-size: 12px; font-weight: 500; }
.auth-screen .text-field { min-height: 54px; padding: 12px 15px; border-color: #b9cdf529; border-radius: 13px; background: #07112499; color: #edf4ff; font-size: 15px; line-height: 1.5; }
.auth-screen .text-field::placeholder { color: #7286a9; opacity: 1; }
.auth-screen .auth-email { text-align: left; }
.auth-screen .auth-password-field { border-color: #b9cdf529; border-radius: 13px; background: #07112499; grid-template-columns: minmax(0, 1fr) 48px; }
.auth-screen .auth-password-field .text-field { background: transparent; border: 0; border-radius: 13px; min-height: 52px; }
.auth-screen .auth-password-field .password-toggle { height: auto; min-height: 52px; border-radius: 12px; color: #99aed1; }
.auth-screen .auth-password-field.auth-invalid { border-color: #f2a6b4aa; }
.auth-screen .auth-field-help { color: #91a5c8; font-size: 11px; line-height: 1.8; }
.auth-screen .field-error { font-size: 12px; line-height: 1.7; color: #ffb6c3; }
.auth-screen .auth-caps-hint { margin: 7px 0 0; color: #eac991; font-size: 11px; line-height: 1.7; }
.auth-password-meter { display: flex; gap: 5px; margin-top: 10px; }
.auth-password-meter[hidden] { display: none; }
.auth-password-meter i { flex: 1; height: 3px; border-radius: 5px; background: #a6bade22; }
.auth-password-meter[data-level="1"] i:first-child { background: #c99a8d; }
.auth-password-meter[data-level="2"] i:nth-child(-n+2) { background: #91b8ed; }
.auth-password-meter[data-level="3"] i { background: #7ac6b7; }
.auth-screen .auth-password-guidance { margin-top: 6px; }
.auth-screen .signup-submit { min-height: 54px; margin-top: 4px; border: 1px solid #b5c7ff23; border-radius: 13px; background: linear-gradient(110deg, #536ce1, #438bd9); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px #294dae24; }
.auth-screen .signup-submit:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.auth-screen .signup-submit:active:not(:disabled) { transform: translateY(0); }
.auth-screen .signup-submit:disabled { opacity: .55; cursor: wait; }
.auth-screen .signup-notice { padding: 9px 12px; border-radius: 10px; color: #b8c8e4; font-size: 12px; text-align: start; background: #24365766; }
.auth-screen .auth-switch { margin-top: 20px; font-size: 12px; font-weight: 400; line-height: 1.9; color: #9eb1d2; }
.auth-screen .resend-code { color: #a9caff; font-size: 12px; font-weight: 500; }
.auth-screen .auth-secondary-actions { gap: 10px; }
.auth-screen .auth-guest-link { color: #91a9d0; font-size: 12px; }
.auth-forgot-link { display: block; margin: 14px 0 0; padding: 6px 0; border: 0; background: transparent; color: #a6c7fb; font-size: 12px; font-weight: 500; cursor: pointer; }
.auth-screen button { touch-action: manipulation; }
.auth-screen button:focus-visible, .welcome-screen button:focus-visible { outline: 2px solid #b5d4ff; outline-offset: 4px; }
.auth-screen .text-field:focus-visible { outline: 2px solid #b5d4ff; outline-offset: 3px; }
.auth-screen .auth-password-field:focus-within { border-color: #8cb5f8; box-shadow: 0 0 0 3px #75a5fa1c; }
.auth-screen .auth-password-field .text-field:focus-visible { outline: none; }
.auth-screen .email-verification-recipient { display: flex; align-items: flex-start; justify-content: flex-start; gap: 9px; max-width: 100%; margin: 18px 0 0; padding: 12px 14px; border: 1px solid #8bb2ed26; border-radius: 12px; background: #16325955; color: #d2e5ff; font-size: 12px; }
.email-verification-recipient svg { flex-shrink: 0; margin-top: 2px; }
.email-verification-recipient bdi { min-width: 0; overflow-wrap: anywhere; }
.auth-screen .email-verification-status { margin-top: 12px; padding: 0; color: #a8c0df; font-size: 12px; line-height: 1.9; }
.auth-screen .email-verification-status.is-error { color: #f0bec7; }
.auth-screen .email-verification-code { min-height: 66px; text-align: center; letter-spacing: .35em; font: 600 25px/1.3 ui-monospace, monospace; padding-inline-start: calc(15px + .35em); }
.auth-screen .email-verification-back { flex-shrink: 0; min-width: 42px; min-height: 42px; border-radius: 12px; color: #bdceed; font-size: 11px; }
[dir="rtl"] .auth-screen .verification-back svg, .auth-screen[dir="rtl"] .verification-back svg,
.auth-screen[dir="rtl"] .email-verification-back svg { transform: scaleX(-1); }
@media (min-width: 700px) {
  .auth-screen { padding-block: 36px; background: radial-gradient(ellipse at 25% 0, #4566c61a, transparent 60%), #080f23; }
  .auth-screen .auth-inner { max-width: 480px; padding: 26px 30px 30px; border: 1px solid #9db9ed22; border-radius: 26px; background: linear-gradient(160deg, #101d36ee, #10172aee); box-shadow: 0 28px 80px #02050e66, inset 0 1px 0 #ffffff08; }
  .auth-screen .auth-intro-icon { margin-top: 25px; }
  .welcome-screen .welcome-content { max-width: 430px; }
}
@media (max-width: 420px) {
  #email-verification-screen .email-verification-back { width: 42px; padding: 0; justify-content: center; }
  #email-verification-screen .email-verification-back > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-height: 690px) {
  .welcome-screen { display: flex; flex-direction: column; padding-block: 24px; }
  .welcome-screen .welcome-content { margin-block: auto; }
  .welcome-eyebrow { margin-bottom: 16px; }
  .welcome-screen .logo-tile { width: 76px; height: 76px; border-radius: 23px; }
  .welcome-screen .welcome-heading { margin-top: 18px; font-size: 27px !important; }
  .welcome-benefits { margin-top: 16px; }
  .welcome-screen .welcome-footer { margin-top: 18px; }
  .auth-screen .auth-intro-icon { width: 44px; height: 44px; margin-top: 20px; border-radius: 14px; }
  .auth-screen .auth-brand { margin-top: 14px; }
  .auth-screen .auth-form { margin-top: 20px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-screen *, .welcome-screen * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
