.auth-icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-modal-open { overflow: hidden; }
.auth-dialog {
  width: min(500px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #bbd7f4;
  border-radius: 23px;
  color: #12345d;
  background: linear-gradient(145deg,#fbfeff,#eaf5ff);
  box-shadow: 0 22px 75px #03152b80;
}
.auth-dialog::backdrop { background: #04162fa8; backdrop-filter: blur(5px); }
.auth-dialog input, .auth-bank { scroll-margin-block: 100px 30px; }
.auth-content { padding: 22px 28px 23px; }
.auth-dialog h2 { padding: 0; margin: 23px 0 5px; color: #102f56; font-size: 27px; line-height: 1.3; font-weight: 800; }
.auth-dialog .auth-description { margin: 0 0 20px; color: #6684a1; font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border: 1px solid #bedcf5; border-radius: 15px; background: #e6f3fd; box-shadow: inset 0 1px #fff; }
.auth-tabs button { min-height: 44px; padding: 8px 5px; border: 0; border-radius: 11px; color: #64809a; background: transparent; font: inherit; font-size: 14px; font-weight: 800; }
.auth-tabs [aria-selected="true"] { color: #fff; background: linear-gradient(110deg,#087ff0,#16b9df); box-shadow: 0 4px 14px #028de330; }
.auth-form { display: grid; gap: 13px; }
.auth-label { display: block; margin: 0 0 7px; color: #355979; font-size: 12px; font-weight: 750; }
.auth-field { position: relative; display: flex; align-items: center; min-width: 0; }
.auth-field > .auth-icon { position: absolute; left: 12px; width: 22px; color: #138bd0; font-size: 21px; pointer-events: none; }
.auth-field input { width: 100%; min-width: 0; min-height: 49px; padding: 10px 12px 10px 43px; border: 1px solid #b8d6ef; border-radius: 12px; color: #173d61; background: #fff; box-shadow: inset 0 1px 2px #0c467604; font: inherit; font-size: 16px; }
.auth-field input::placeholder { color: #95a9bb; font-size: 12px; }
.auth-field input:focus, .auth-otp:focus { outline: 2px solid #50b8f49c; outline-offset: 1px; border-color: #23a1e6; }
.auth-field input[aria-invalid="true"], .auth-otp[aria-invalid="true"] { border-color: #dc7281; }
.auth-field input#register-password { padding-right: 40px; }
.auth-eye { position: absolute; right: 4px; display: grid; place-items: center; width: 33px; height: 36px; border: 0; border-radius: 8px; color: #477397; background: transparent; }
.auth-eye:hover { background: #e8f4fd; }
.auth-eye[aria-pressed="true"] .login-eye { opacity: .55; }
.auth-primary, .auth-dialog .login-submit {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 49px; padding: 10px 16px;
  border: 1px solid #1ca8e5; border-radius: 13px;
  color: #fff; background: linear-gradient(110deg,#087ff0,#17c1df);
  box-shadow: 0 7px 18px #0d9ada24; font: inherit; font-weight: 800;
  transition: filter .16s, transform .16s;
}
.auth-primary:hover, .auth-dialog .login-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.auth-primary:disabled { opacity: .55; transform: none; }
.auth-dialog .auth-switch { margin: 20px 0 0; text-align: center; color: #7290a9; font-size: 12px; }
.auth-switch button, .auth-text-button { padding: 3px 5px; border: 0; color: #098ee0; background: transparent; font: inherit; font-weight: 800; }
.auth-switch button:hover, .auth-text-button:hover:not(:disabled) { text-decoration: underline; }
.auth-text-button { min-height: 34px; font-size: 12px; }
.auth-text-button:disabled { color: #96aabd; cursor: default; }
.auth-dialog .auth-error { margin: 0; padding: 10px 12px; border: 1px solid #efc5cb; border-radius: 10px; color: #a53d4b; background: #fff2f4; font-size: 12px; }
.auth-steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; padding: 0; margin: 0 0 22px; list-style: none; }
.auth-steps li { position: relative; display: grid; justify-items: center; gap: 6px; flex: 1; color: #90a5ba; text-align: center; font-size: 10px; font-weight: 700; }
.auth-steps li:not(:last-child)::after { position: absolute; top: 15px; left: calc(50% + 23px); width: calc(100% - 39px); height: 1px; background: #cee0ef; content: ""; }
.auth-steps span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #cbdfee; border-radius: 50%; background: #edf5fb; font-size: 13px; }
.auth-steps .is-active { color: #117bb9; }
.auth-steps .is-active span { color: #fff; border-color: #159feb; background: linear-gradient(#22b8ed,#087ce2); box-shadow: 0 0 0 4px #d9f0ff; }
.auth-steps .is-complete { color: #258b85; }
.auth-steps .is-complete span { border-color: #9cd6cc; color: #138773; background: #e0f5ef; }
.auth-phone-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid #cce2f4; border-radius: 12px; color: #214e75; background: #e9f5ff; font-size: 16px; font-weight: 750; }
.auth-phone-summary button { padding: 3px; border: 0; color: #168dcc; background: transparent; font: inherit; font-size: 11px; }
.auth-otp { width: 100%; min-height: 64px; padding: 8px 8px 8px 20px; border: 1px solid #aacfeb; border-radius: 13px; color: #16517f; background: #fff; text-align: center; font: 750 28px/1.4 ui-monospace,monospace; letter-spacing: .45em; }
.auth-otp::placeholder { color: #c6d8e7; }
.auth-verified { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid #b8e2d7; border-radius: 10px; color: #267967; background: #edf9f4; font-size: 11px; }
.auth-verified .auth-icon { font-size: 19px; }
.auth-password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-password-grid .auth-field > .auth-icon { left: 10px; font-size: 18px; }
.auth-password-grid input { padding-left: 34px; font-size: 14px; }
.auth-password-grid input::placeholder { font-size: 10px; }
.auth-bank-fieldset, .auth-bonus { min-width: 0; padding: 0; margin: 3px 0 0; border: 0; }
.auth-bank-fieldset legend, .auth-bonus legend { padding: 0; }
.auth-bank-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.auth-bank { position: relative; display: grid; place-items: center; gap: 5px; min-width: 0; padding: 7px 3px 5px; border: 1px solid #d4e3ef; border-radius: 11px; background: #f5f9fd; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.auth-bank > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.auth-bank-mark { display: grid; place-items: center; width: 44px; height: 44px; padding: 6px; border-radius: 10px; background: var(--bank-color); filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s, transform .2s; }
.auth-bank-mark img { width: 100%; height: 100%; object-fit: contain; }
.auth-bank-short { color: #7b91a6; font-size: 9px; font-weight: 750; white-space: nowrap; }
.auth-bank-check { position: absolute; top: 2px; right: 2px; display: none; place-items: center; width: 17px; height: 17px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #17b384; font-size: 10px; font-weight: 900; }
.auth-bank:hover { border-color: #9ccaf0; transform: translateY(-1px); }
.auth-bank:has(input:checked) { border-color: #36a6e7; background: #e4f4ff; box-shadow: 0 0 0 1px #8cd2f65c; }
.auth-bank input:checked + .auth-bank-mark { filter: none; opacity: 1; transform: translateY(-1px); }
.auth-bank input:checked ~ .auth-bank-check { display: grid; }
.auth-bank input:checked ~ .auth-bank-short { color: #176594; }
.auth-bank:has(input:focus-visible) { outline: 2px solid #3aa9e8; outline-offset: 2px; }
.auth-dialog .auth-selected-bank { margin: 0; padding: 10px 12px; border: 1px solid #c9dfef; border-radius: 10px; color: #527894; background: #edf6fd; font-size: 11px; }
.auth-bonus > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-bonus label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; border: 1px solid #cfdfed; border-radius: 12px; color: #7991a7; background: #f4f8fc; font-size: 13px; font-weight: 750; cursor: pointer; }
.auth-bonus input { margin: 0; accent-color: #139be6; }
.auth-bonus label:has(input:checked) { color: #117dbb; border-color: #67bced; background: #e4f5ff; }
.auth-success { text-align: center; padding: 12px 0 0; }
.auth-success > .auth-icon { display: block; margin: 0 auto 16px; color: #16ad91; font-size: 67px; }
.auth-success h3 { margin: 0 0 10px; color: #174675; font-size: 20px; }
.auth-dialog .auth-success p { margin: 0 0 22px; color: #7890a5; font-size: 12px; }
.auth-dialog #login-form { gap: 13px; }
.auth-dialog #login-form .login-field input { min-height: 49px; border-radius: 12px; background: #fff; }
.auth-dialog .login-options { color: #67869f; font-size: 12px; }
.auth-dialog .login-error { margin: 0; }
.auth-dialog #login-form .login-register, .auth-dialog #login-form .login-note { display: none; }
@media (max-width: 620px) {
  .auth-dialog { border-radius: 20px; }
  .auth-content { padding: 18px 19px 21px; }
  .auth-dialog h2 { margin-top: 20px; font-size: 25px; }
  .auth-password-grid { grid-template-columns: 1fr; gap: 13px; }
  .auth-password-grid input { font-size: 16px; }
  .auth-password-grid input::placeholder { font-size: 12px; }
  .auth-bank-grid { gap: 6px; }
  .auth-bank-mark { width: 36px; height: 36px; padding: 5px; border-radius: 8px; }
  .auth-bank { padding: 6px 2px 4px; }
  .auth-bank-short { font-size: 8px; }
}
@media (max-width: 360px) {
  .auth-content { padding-inline: 15px; }
  .auth-bank-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .auth-tabs button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-primary, .auth-dialog .login-submit, .auth-bank, .auth-bank-mark { transition: none; }
}

/* Member area using the dashboard blue and white palette. */
.auth-dialog {
  width: min(520px,calc(100% - 28px));
  border-color: #abcdec;
  border-radius: 25px;
  color: var(--ink);
  background: radial-gradient(ellipse at 0 0,#d5e9fb,transparent 52%),linear-gradient(155deg,#fbfdff,#edf5ff 90%);
  box-shadow: 0 25px 90px #05255145,inset 0 1px #ffffffb3;
  scrollbar-width: thin;
  scrollbar-color: #9cbfe0 #eaf3fc;
}
.auth-dialog::backdrop { background: #041b3980; backdrop-filter: blur(7px); }
.auth-content { padding: 25px 30px 27px; }
.auth-dialog h2 { margin: 27px 0 8px; color: var(--ink); font-size: 28px; font-weight: 750; }
.auth-dialog .auth-description { margin-bottom: 25px; color: #5d7898; font-size: 13px; line-height: 1.7; }
.auth-tabs { padding: 5px; border-color: #c1daef; border-radius: 14px; background: #e9f3fc; box-shadow: none; }
.auth-tabs button { position: relative; min-height: 46px; padding: 10px 5px; border: 1px solid transparent; border-radius: 10px; color: #6a87a5; font-weight: 700; }
.auth-tabs [aria-selected="true"] { border-color: #9dc9ed; color: #0759b6; background: linear-gradient(135deg,#f4faff,#d9ecff); box-shadow: inset 0 1px #ffffffb3,0 2px 6px #0759b612; }
.auth-tabs [aria-selected="true"]::after { position: absolute; bottom: 3px; left: calc(50% - 14px); width: 28px; height: 2px; border-radius: 2px; background: #168cde; content: ""; }
.auth-form { gap: 17px; }
.auth-label { margin-bottom: 8px; color: #355a80; font-weight: 650; }
.auth-dialog input,.auth-bank { scroll-margin-block: 110px 30px; }
.auth-field > .auth-icon { left: 14px; width: 20px; color: #2077ba; font-size: 20px; }
.auth-field input { min-height: 51px; padding: 11px 13px 11px 44px; border-color: #b6d1ea; border-radius: 11px; color: var(--ink); background: #fff; box-shadow: inset 0 1px 3px #0b487805; }
.auth-field input::placeholder { color: #7890aa; }
.auth-field input:focus,.auth-otp:focus { outline: 2px solid #218cdd35; outline-offset: 2px; border-color: #248cdb; box-shadow: 0 0 0 1px #278cdf0f; }
.auth-field input[aria-invalid="true"],.auth-otp[aria-invalid="true"] { border-color: #ce7c88; }
.auth-eye { right: 5px; color: #527a9f; }
.auth-eye:hover { color: #0759b6; background: #e4f1fc; }
.auth-primary,.auth-dialog .login-submit { min-height: 51px; gap: 13px; padding: 12px 17px; border-color: #328fd5; border-radius: 11px; color: #fff; background: linear-gradient(115deg,#168bde,#0759b6 67%,#064a9c); box-shadow: inset 0 1px #ffffff40,0 5px 15px #0759b62b; font-size: 15px; }
.auth-primary:hover,.auth-dialog .login-submit:hover { filter: brightness(1.07); box-shadow: inset 0 1px #ffffff40,0 7px 20px #0759b62e; }
.auth-primary > span { font-size: 19px; line-height: 1; }
.auth-dialog .auth-switch { margin-top: 26px; padding-top: 19px; border-top: 1px solid #cbdff0; color: #6786a3; }
.auth-switch button,.auth-text-button { color: #0869b8; font-weight: 700; }
.auth-switch button:hover,.auth-text-button:hover:not(:disabled) { color: #004b99; }
.auth-text-button:disabled { color: #90a5b8; }
.auth-dialog .auth-error,.auth-dialog .login-error { margin: 0; padding: 11px 13px; border: 1px solid #e8b8c0; border-radius: 10px; color: #a94152; background: #fff0f3; font-size: 12px; }
.auth-steps { gap: 8px; margin-bottom: 26px; }
.auth-steps li { gap: 8px; color: #879fb6; font-weight: 650; }
.auth-steps li:not(:last-child)::after { top: 16px; left: calc(50% + 24px); width: calc(100% - 40px); background: #cadeef; }
.auth-steps span { width: 33px; height: 33px; border-color: #c5dbec; background: #edf5fc; }
.auth-steps .is-active { color: #0759b6; }
.auth-steps .is-active span { color: #fff; border-color: #348bd3; background: linear-gradient(#2199e8,#0759b6); box-shadow: 0 0 0 4px #0759b60c; font-weight: 800; }
.auth-steps .is-complete { color: #527aa1; }
.auth-steps .is-complete span { border-color: #a8cce9; color: #176aaf; background: #e6f2fc; }
.auth-steps .is-complete::after { background: #a6ceeb; }
.auth-phone-summary { gap: 12px; padding: 13px 15px; border-color: #bfd8ee; border-radius: 11px; color: #214b72; background: #eaf4fd; font-weight: 700; }
.auth-phone-summary button { color: #1477bf; }
.auth-otp { min-height: 70px; padding-block: 10px; border-color: #a9c9e5; border-radius: 12px; color: #0b568f; background: #fff; font-weight: 650; font-size: 29px; }
.auth-otp::placeholder { color: #bdd1e3; }
.auth-verified { gap: 9px; padding: 11px 13px; border-color: #b5ddcf; color: #2b7968; background: #edf8f3; }
.auth-verified .auth-icon { color: #34977a; font-size: 18px; }
.auth-password-grid { gap: 13px; }
.auth-password-grid .auth-field > .auth-icon { left: 12px; font-size: 18px; }
.auth-password-grid input { padding-left: 38px; font-size: 15px; }
.auth-password-grid input::placeholder { font-size: 11px; }
.auth-bank-fieldset,.auth-bonus { margin-top: 4px; }
.auth-bank-fieldset legend,.auth-bonus legend { margin-bottom: 10px; }
.auth-bank-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 12px; border: 1px solid #cbdff0; border-radius: 15px; background: #eaf3fb70; }
.auth-bank { gap: 6px; padding: 8px 3px 7px; border-color: #d1e1ee80; border-radius: 10px; background: #f8fbff90; }
.auth-bank-mark { border-radius: 9px; opacity: .58; }
.auth-bank-short { color: #5e7e9a; font-size: 10px; font-weight: 650; }
.auth-bank-check { top: 3px; right: 3px; border-color: #fff; background: #28ab87; }
.auth-bank:hover { border-color: #9fc9eb; background: #e8f4fd; }
.auth-bank:has(input:checked) { border-color: #2689d5; background: #e5f2ff; box-shadow: inset 0 0 0 1px #ffffff80; }
.auth-bank input:checked ~ .auth-bank-short { color: #0a5c9a; }
.auth-bank:has(input:focus-visible) { outline-color: #2188d5; outline-offset: 3px; }
.auth-dialog .auth-selected-bank { padding: 11px 13px; border-color: #c8ddef; color: #4f7496; background: #ecf5fc; font-size: 12px; line-height: 1.65; }
.auth-bonus > div { gap: 11px; }
.auth-bonus label { gap: 9px; min-height: 47px; border-color: #bfd6e9; border-radius: 10px; color: #6d88a1; background: #f8fbff; font-weight: 650; }
.auth-bonus input { accent-color: #167cc8; }
.auth-bonus label:has(input:checked) { color: #0759b6; border-color: #398ed1; background: #e6f3ff; }
.auth-success { padding-top: 17px; }
.auth-success > .auth-icon { margin-bottom: 19px; color: #197dba; font-size: 65px; }
.auth-success h3 { margin-bottom: 12px; color: #174d7e; font-size: 21px; }
.auth-dialog .auth-success p { margin-bottom: 26px; color: #6c88a2; line-height: 1.8; }
.auth-dialog #login-form { gap: 17px; }
.auth-dialog #login-form .login-field input { min-height: 51px; border-color: #b6d1ea; border-radius: 11px; color: var(--ink); background: #fff; }
.auth-dialog #login-form .login-field input::placeholder { color: #7890aa; }
.auth-dialog #login-form .login-field input:focus { outline: 2px solid #218cdd35; outline-offset: 2px; border-color: #248cdb; }
.auth-dialog .login-field-icon { color: #2778b8; }
.auth-dialog .login-password-toggle { color: #5b7e9d; }
.auth-dialog .login-password-toggle:hover { color: #0759b6; background: #e4f1fc; }
.auth-dialog .login-password-toggle[aria-pressed="true"] .login-eye::before { box-shadow: 0 1px #fff; }
.auth-dialog .login-options { color: #5f7d99; }
.auth-dialog .login-options input { accent-color: #147bc5; }
.auth-dialog .login-help { color: #1768aa; font-size: 11px; }
@media (max-width: 620px) {
  .auth-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 21px; }
  .auth-content { padding: 21px 20px 24px; }
  .auth-dialog h2 { margin-top: 25px; font-size: 26px; }
  .auth-dialog .auth-description { margin-bottom: 24px; font-size: 12px; }
  .auth-password-grid { gap: 17px; }
  .auth-password-grid input { font-size: 16px; }
  .auth-password-grid input::placeholder { font-size: 12px; }
  .auth-bank-grid { gap: 6px; padding: 9px; }
  .auth-bank { gap: 5px; padding: 7px 2px 6px; }
  .auth-bank-mark { width: 38px; height: 38px; padding: 5px; border-radius: 8px; }
  .auth-bank-short { font-size: 9px; }
  .auth-bank-check { width: 15px; height: 15px; top: 1px; right: 1px; }
}
@media (max-width: 360px) {
  .auth-content { padding-inline: 17px; }
  .auth-bank-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

/* Compact branded header shared by login and registration. */
.auth-banner {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) 34px;
  align-items: center;
  gap: 18px;
  min-height: 94px;
  padding: 20px 27px;
  border-bottom: 1px solid #cee1f2;
  background: linear-gradient(120deg,#fff 18%,#eef7ff);
  box-shadow: 0 3px 13px #0a4c8505;
}
.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 142px;
  height: 54px;
  padding: 6px 12px;
  border: 1px solid #1c70b8;
  border-radius: 12px;
  background: linear-gradient(135deg,#096acb,#06448f);
  box-shadow: inset 0 1px #c4e5ff33,0 4px 10px #0759b619;
}
.auth-brand-mark img { width: 118px; height: auto; }
.auth-banner-copy { display: grid; gap: 4px; min-width: 0; }
.auth-banner-copy strong { color: var(--ink); font-size: 16px; font-weight: 750; line-height: 1.4; }
.auth-banner-copy > span { color: #708eab; font-size: 8px; letter-spacing: .14em; line-height: 1.5; }
.auth-close {
  position: static;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #c4dcef;
  border-radius: 10px;
  color: #5e7f9e;
  background: #ffffffc9;
  box-shadow: 0 1px 3px #0d4e8205;
  transition: color .16s,border-color .16s,background .16s;
}
.auth-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.auth-close:hover { color: #0759b6; border-color: #88bce4; background: #e4f2ff; }
.auth-close:focus-visible { outline: 2px solid #2588d8; outline-offset: 3px; }
@media (max-width: 620px) {
  .auth-banner { min-height: 83px; grid-template-columns: auto minmax(0,1fr) 32px; padding: 17px 20px; gap: 12px; }
  .auth-brand-mark { width: 120px; height: 48px; padding: 6px 10px; border-radius: 10px; }
  .auth-brand-mark img { width: 100px; }
  .auth-banner-copy strong { font-size: 14px; }
  .auth-banner-copy > span { font-size: 7px; letter-spacing: .09em; }
  .auth-close { width: 32px; height: 32px; border-radius: 9px; }
}
@media (max-width: 360px) {
  .auth-banner { padding-inline: 16px; gap: 10px; grid-template-columns: auto minmax(0,1fr) 30px; }
  .auth-brand-mark { width: 105px; height: 43px; padding: 5px 8px; }
  .auth-brand-mark img { width: 89px; }
  .auth-banner-copy strong { font-size: 13px; }
  .auth-banner-copy > span { font-size: 6.5px; letter-spacing: .05em; }
  .auth-close { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .auth-close { transition: none; } }
