body.auth-modal-open { overflow: hidden; }
.auth-modal {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(var(--pal-violet-6b21a8-rgb), .16);
  border-radius: 24px;
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 28px 90px rgba(var(--pal-violet-1e0a2f-rgb), .3);
  overflow: auto;
}
.auth-modal::backdrop {
  background: rgba(var(--pal-violet-170a24-rgb), .58);
  backdrop-filter: blur(5px);
}
.auth-modal-dialog { position: relative; padding: 24px; }
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(var(--pal-violet-6b21a8-rgb), .12);
  border-radius: 50%;
  background: var(--pal-violet-f7f2fb);
  color: var(--color-primary-dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.auth-modal-close:hover { background: var(--pal-violet-eee2f8); }
.auth-modal :focus-visible { outline: 3px solid var(--pal-violet-a66bd3); outline-offset: 3px; }
.auth-modal-heading { padding: 0 30px; text-align: center; }
.auth-modal-heading .premium-kicker { margin-bottom: 8px; font-size: 11px; letter-spacing: .15em; }
.auth-modal-heading p { margin: 0 0 6px; color: var(--pal-violet-74677f); font-size: 14px; }
.auth-modal .auth-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-combined-panel .auth-tabs { margin: 0 0 12px; }
.auth-combined-panel .auth-feedback .alert { margin: 0 0 6px; padding: 6px 12px; overflow-wrap: anywhere; }
.auth-combined-panel .reg-grid { gap: 10px 14px; }
.auth-combined-panel .reg-section { margin-top: 12px; padding-top: 10px; }
.auth-combined-panel .reg-section:first-of-type { margin-top: 0; padding-top: 0; }
.auth-combined-panel .auth-otp-form > .form-group { margin: 0; }
.auth-combined-panel .auth-manual-form .auth-submit { margin-top: 12px; }
.auth-combined-panel .otp-action-row { margin-top: 10px; gap: 10px; }
.auth-combined-panel .auth-login-captcha { position: relative; display: grid; grid-template-columns: 208px minmax(0, 1fr); align-items: start; gap: 0 14px; width: 100%; margin: 8px 0 0; }
.auth-login-captcha .auth-captcha-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.auth-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: start; gap: 8px; }
.auth-captcha-image-group { min-width: 0; }
.auth-captcha-row img { display: block; width: 100%; height: auto; padding: 3px; border: 1px solid #dce1ea; border-radius: 10px; background: #fff; box-shadow: 0 2px 6px rgba(19, 37, 107, .08); }
.auth-captcha-expiry { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: #13256b; font-size: 10px; font-weight: 700; line-height: 14px; white-space: nowrap; }
.auth-captcha-expiry progress { flex: 1; width: 0; height: 5px; overflow: hidden; appearance: none; border: 0; border-radius: 99px; background: #e2e5eb; accent-color: var(--pal-violet-283a85); }
.auth-captcha-expiry progress::-webkit-progress-bar { background: #e2e5eb; border-radius: 99px; }
.auth-captcha-expiry progress::-webkit-progress-value { background: var(--pal-violet-283a85); border-radius: 99px; }
.auth-captcha-expiry progress::-moz-progress-bar { background: var(--pal-violet-283a85); border-radius: 99px; }
.auth-login-captcha.is-expired .auth-captcha-expiry { color: #b91c1c; }
.auth-combined-panel .auth-login-captcha .form-control { min-width: 0; min-height: 40px; height: 40px; margin-top: 10px; font-size: .86rem; }
.auth-login-captcha .field-error { grid-column: 1 / -1; }
.auth-captcha-refresh { width: 30px; height: 30px; margin-top: 14px; padding: 0; border: 0; border-radius: 50%; background: #13256b; color: #fff; font-size: 19px; line-height: 1; box-shadow: 0 3px 8px rgba(19, 37, 107, .18); cursor: pointer; }
.auth-captcha-refresh:hover { background: #253b8b; }
.auth-modal .reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-modal .reg-grid-with-name .form-group:first-child { grid-column: 1 / -1; }
.auth-modal .auth-submit { width: 100%; min-height: 46px; }
.auth-modal .register-submit-row { display: block; }
.auth-modal .form-help { color: var(--pal-violet-74677f); }
.auth-modal > .select2-drop-mask {
  position: fixed;
  inset: 0;
  width: auto !important;
  height: auto !important;
}
.auth-feedback:empty { display: none; }
.auth-feedback:focus { outline: none; }
.auth-modal-loading { padding: 30px 0; text-align: center; color: var(--pal-violet-74677f); }
[data-auth-root][aria-busy="true"]:not([data-captcha-refreshing="true"]) { opacity: .7; cursor: progress; }
[data-auth-root] button:disabled { cursor: wait; }
@media (max-width: 520px) {
  .auth-modal { max-height: calc(100dvh - 24px); border-radius: 20px; }
  .auth-modal-dialog { padding: 22px 18px 20px; }
  .auth-modal .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-combined-panel .auth-login-captcha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
  .auth-captcha-row { grid-template-columns: minmax(0, 1fr) 26px; gap: 6px; }
  .auth-captcha-refresh { width: 26px; height: 26px; margin-top: 8px; font-size: 17px; }
  .auth-combined-panel .auth-login-captcha .form-control { margin-top: 4px; font-size: .78rem; padding-inline: 10px; }
  .auth-modal .otp-action-row { gap: 8px; }
  .auth-modal .otp-action-btn { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 360px) {
  .auth-combined-panel .auth-login-captcha { grid-template-columns: minmax(0, 1fr); }
  .auth-captcha-row { width: 180px; max-width: 100%; }
}
