:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #16171c;
  background: #eef1f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 3px solid #e95175; outline-offset: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 20% 10%, #e1f4f0 0, transparent 45%), #eef1f1; }
.auth-card { position: relative; width: 100%; max-width: 620px; overflow: hidden; padding: 54px 66px 34px; border-radius: 32px; background: radial-gradient(ellipse 72% 190px at 0 0, #e0fcf7 0%, #f4fffc 48%, transparent 100%), #fff; box-shadow: 0 22px 80px #122c3520; }
.auth-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #a3a6ab; transition: background .18s, color .18s; }
.auth-close svg { width: 25px; height: 25px; }
.auth-close:hover { color: #41454d; background: #f1f3f3; }
.auth-header { text-align: center; }
.auth-header h1 { margin: 0; font-size: 29px; line-height: 1.45; letter-spacing: -.8px; font-weight: 750; color: #111216; }
.auth-header p { margin: 12px 0 0; font-size: 14px; letter-spacing: .8px; line-height: 1.6; color: #85878f; }
.auth-method { display: flex; justify-content: center; margin: 34px 0 26px; font-size: 17px; font-weight: 600; }
.auth-method span { position: relative; padding-bottom: 12px; }
.auth-method span::after { position: absolute; content: ""; bottom: 0; left: calc(50% - 14px); width: 28px; height: 3px; border-radius: 4px; background: #ff6688; }
.auth-fields { display: grid; gap: 16px; }
.auth-field { display: flex; align-items: center; height: 62px; background: #f6f6f8; border: 1px solid transparent; border-radius: 16px; transition: border-color .18s, background .18s, box-shadow .18s; }
.auth-field:focus-within { border-color: #ff9cb1; background: #fff; box-shadow: 0 0 0 3px #fff0f4; }
.auth-field input { width: 100%; min-width: 0; height: 100%; padding: 0 22px; outline: none; color: #20222b; background: transparent; border: 0; border-radius: inherit; font-size: 16px; line-height: 1.5; }
.auth-field input::placeholder { color: #999ba4; opacity: 1; }
.auth-field input:autofill { border-radius: 16px; }
.password-field input { padding-right: 8px; }
.password-toggle { display: grid; place-items: center; width: 48px; height: 44px; flex: 0 0 48px; margin-right: 8px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #989ba5; }
.password-toggle svg { width: 22px; height: 22px; }
.password-toggle:hover { color: #454954; background: #ebecef; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.field-hint { margin: 12px 2px 0; font-size: 12px; line-height: 1.6; color: #898b94; }
.auth-message { margin: -7px 0 20px; padding: 12px 16px; border-radius: 12px; background: #fff1f3; color: #bd3455; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: 28px; padding: 14px 24px; border: 0; border-radius: 16px; background: #ff5c81; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 3px; transition: background .18s, box-shadow .18s, transform .18s; }
.auth-submit:hover { background: #f84a73; box-shadow: 0 6px 20px #ff5c812e; }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled { cursor: wait; background: #f889a2; box-shadow: none; }
.submit-spinner { display: none; width: 17px; height: 17px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: auth-spin .75s linear infinite; }
.auth-form[aria-busy="true"] .submit-spinner { display: block; }
.verification-intro { margin: -6px 0 24px; text-align: center; }
.verification-intro p { margin: 0; color: #898b94; font-size: 13px; line-height: 1.9; }
.verification-intro strong { display: block; margin: 7px 0 14px; color: #373b45; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.verification-intro [data-code-expiry] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.verification-field input { padding-left: 28px; text-align: center; font-size: 25px; font-weight: 600; letter-spacing: 9px; font-variant-numeric: tabular-nums; }
.verification-field input::placeholder { font-size: 15px; font-weight: 400; letter-spacing: 1px; }
.verification-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; margin-top: 14px; }
.auth-resend-form { margin: 0; }
.auth-resend-button, .verification-change { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0 2px; background: transparent; color: #e94e73; font-size: 13px; }
.auth-resend-button:hover, .verification-change:hover { color: #cc2c53; }
.auth-resend-button:disabled { cursor: default; color: #8c8f99; }
.auth-resend-form[aria-busy="true"] .auth-resend-button { cursor: wait; }
.verification-help { margin: 12px 0 0; color: #92959e; font-size: 12px; line-height: 1.8; }
.verification-security { margin: 27px 0 0; padding-top: 19px; border-top: 1px solid #eeeff2; color: #9a9ca5; font-size: 12px; line-height: 1.7; text-align: center; }
.auth-switch { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 44px; margin-top: 10px; color: #8a8c96; font-size: 13px; }
.auth-switch a { display: inline-flex; align-items: center; min-height: 44px; color: #e94e73; font-weight: 500; }
.auth-switch a:hover { color: #cc2c53; }
.auth-switch svg { width: 14px; height: 14px; margin-left: 2px; }
.social-section { margin-top: 22px; }
.social-divider { display: flex; align-items: center; gap: 20px; color: #a0a2aa; font-size: 12px; }
.social-divider::before, .social-divider::after { content: ""; flex: 1; height: 1px; background: #eeeff2; }
.social-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 22px -5px 0; }
.social-option { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 9px; min-width: 0; padding: 3px 0 6px; border: 0; border-radius: 12px; background: transparent; color: #171a20; transition: transform .18s; }
.social-option:not(:disabled):hover { transform: translateY(-3px); }
.social-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #eceef1; background: #fff; transition: background .18s, border-color .18s; }
.social-option:not(:disabled):hover .social-icon { border-color: #d1d4dc; background: #f8f9fa; }
.social-icon svg { width: 27px; height: 27px; }
.social-name { font-size: 11px; line-height: 1.5; white-space: nowrap; letter-spacing: -.2px; color: #696d78; }
.social-option:disabled { cursor: default; }
.social-option.is-unavailable .social-icon { opacity: .78; }
.social-note { margin: 13px 0 0; text-align: center; color: #9a9ca5; font-size: 11px; line-height: 1.6; }
.youtube-login-note { color: #777b85; }
.youtube-login-note + .social-note { margin-top: 5px; }
.line-region-list { display: grid; gap: 10px; margin-top: 26px; }
.line-region-option { display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; gap: 15px; min-height: 60px; padding: 13px 18px; border: 1px solid transparent; border-radius: 15px; background: #f6f6f8; font-size: 16px; transition: border-color .18s, background .18s; }
.line-region-option:hover { border-color: #a8e5bd; background: #f0fbf4; }
.line-region-code { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #248747; background: #e5f4e9; font-size: 11px; font-weight: 650; letter-spacing: .5px; }
.line-region-option svg { width: 16px; height: 16px; color: #9a9ca5; }
.line-region-back { margin-top: 15px; }
.line-region-message { margin: 22px 0 0; }
.line-region-empty { margin: 30px 0; font-size: 14px; line-height: 1.8; text-align: center; color: #898b94; }
.auth-page.is-embedded { display: block; min-height: 0; padding: 0; background: transparent; }
.is-embedded .auth-card { max-width: none; box-shadow: none; }
.is-logout { padding-top: 62px; padding-bottom: 35px; }
.logout-description { margin: 36px 0 6px; color: #777b85; font-size: 15px; line-height: 1.9; text-align: center; }
.cancel-logout { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 12px 0 0; color: #737782; font-size: 14px; }
.cancel-logout:hover { color: #e94e73; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .auth-card { padding: 52px 38px 30px; border-radius: 28px; }
  .auth-header h1 { font-size: 26px; letter-spacing: -.7px; }
  .auth-header p { font-size: 13px; }
}
@media (max-width: 420px) {
  .auth-page { padding: 16px 12px; }
  .auth-card { padding: 53px 24px 26px; border-radius: 24px; }
  .auth-close { top: 10px; right: 10px; }
  .auth-header h1 { font-size: 23px; }
  .auth-header p { font-size: 12px; margin-top: 10px; letter-spacing: .5px; }
  .auth-method { margin-top: 27px; margin-bottom: 23px; font-size: 16px; }
  .auth-fields { gap: 14px; }
  .auth-field { height: 58px; border-radius: 14px; }
  .auth-field input { padding-left: 17px; }
  .auth-submit { min-height: 54px; border-radius: 14px; margin-top: 24px; font-size: 17px; }
  .social-section { margin-top: 17px; }
  .social-options { gap: 4px; margin-left: -8px; margin-right: -8px; }
  .social-icon { width: 38px; height: 38px; }
  .social-icon svg { width: 25px; height: 25px; }
  .social-name { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .submit-spinner { animation-duration: 1.6s; }
}

.auth-legal{display:flex;justify-content:center;align-items:center;gap:9px;margin:17px 0 -8px;color:#9a9ca5;font-size:11px;line-height:1.6}.auth-legal a{padding:4px 0}.auth-legal a:hover{color:#e94e73}

/* Email codes stay on the registration form, next to their send action. */
.is-registration .auth-method { margin-top: 26px; margin-bottom: 22px; }
.registration-code-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.registration-code-field { flex: 1 1 auto; min-width: 0; }
.registration-code-field input { font-size: 15px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.registration-code-field input::placeholder { font-size: 14px; letter-spacing: 0; }
.registration-code-field input:disabled { color: #8f929b; }
.registration-code-field:has(input[aria-invalid="true"]) { border-color: #ef8da5; background: #fff5f7; }
.registration-send { flex: 0 0 116px; min-height: 48px; padding: 0 10px; border: 0; border-radius: 12px; background: #fff0f4; color: #e94e73; font-size: 14px; font-weight: 600; white-space: nowrap; }
.registration-send:hover { color: #d8325b; background: #ffe5ed; }
.registration-send:disabled { cursor: default; background: #f6f6f8; color: #9a9ca5; font-weight: 400; }
.registration-hint { margin: 10px 2px 0; color: #8b8e98; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.registration-feedback { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; margin: 12px 0 0; }
.registration-feedback p { flex: 1 1 220px; margin: 0; color: #578778; font-size: 12px; line-height: 1.8; }
.registration-feedback.is-error p { color: #c1395b; }
#registration-change { flex: 0 0 auto; min-height: 32px; padding: 0; margin-top: -5px; border: 0; background: transparent; color: #e94e73; font-size: 12px; }
.is-registration .auth-submit { margin-top: 22px; }
.is-registration .auth-submit:disabled { cursor: default; background: #f8a9bd; }
.is-registration .auth-form[aria-busy="true"][data-registration-action="send"] .submit-spinner { display: none; }
.has-verification .auth-fields .auth-field { background: #f8f8fa; }
.has-verification .auth-fields input[readonly] { color: #777b85; }
@media(max-width:420px) {
  .is-registration .auth-header h1 { font-size: 21px; }
  .is-registration .auth-method { margin-top: 23px; margin-bottom: 20px; }
  .registration-code-row { gap: 9px; margin-top: 17px; }
  .registration-send { flex-basis: 104px; min-height: 44px; padding: 0 7px; font-size: 12px; }
  .registration-code-field input { padding-left: 15px; font-size: 16px; letter-spacing: 1px; }
  .registration-code-field input::placeholder { font-size: 12px; letter-spacing: 0; }
  .registration-hint { font-size: 11px; }
  .registration-feedback p { flex-basis: 100%; font-size: 11px; }
  .is-registration .auth-submit { margin-top: 19px; }
}
