@charset "UTF-8";
/* ============================================================
   Auth overlays (login / signup / reset / resend) — 2026 revamp
   Dark-first (html.dark is the site default), html.light overrides.
   Loaded after black_orange.css — selectors deliberately kept at
   equal-or-higher specificity than the legacy .modal-inner rules.
   ============================================================ */

html .modal-inner.auth-modal {
  --am-accent: #3cbff0;
  --am-accent-hover: #2da8d8;
  --am-accent-ink: #001018;
  --am-bg: #17171d;
  --am-surface: #21212a;
  --am-surface-2: #101015;
  --am-border: rgba(255, 255, 255, .09);
  --am-text: #fff;
  --am-muted: #9aa3ad;
  --am-error: #ff6b6b;
  --am-radius: 24px;

  min-width: 0;
  max-width: none;
  width: min(400px, calc(100vw - 24px));
  padding: 0;
  background: var(--am-bg);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  overflow: hidden;
  color: var(--am-text);
  font-family: Quicksand, Roboto, sans-serif;
}
html .modal-inner.auth-modal--login { width: min(440px, calc(100vw - 24px)); }
html .modal-inner.auth-modal--signup { width: min(730px, calc(100vw - 24px)); }

html.light .modal-inner.auth-modal {
  --am-bg: #fff;
  --am-surface: #eef1f5;
  --am-surface-2: #f4f6f9;
  --am-border: rgba(15, 23, 42, .1);
  --am-text: #16212b;
  --am-muted: #5f6d76;
  --am-error: #d93838;
}

/* ---------- close button ---------- */
html .auth-modal .close-btn {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  z-index: 5;
  transition: background .2s;
}
html .auth-modal .close-btn:hover { background: rgba(255, 255, 255, .16); }
html .auth-modal .close-btn svg { width: 14px; height: 14px; fill: #cfd6dc; }
html.light .auth-modal .close-btn { background: rgba(15, 23, 42, .06); }
html.light .auth-modal .close-btn:hover { background: rgba(15, 23, 42, .12); }
html.light .auth-modal .close-btn svg { fill: #5f6d76; }

/* ---------- signup layout: hero left, form right ---------- */
.auth-modal--signup { display: flex; align-items: stretch; }
.auth-modal--signup .auth-hero { width: 292px; flex-shrink: 0; }
.auth-modal--signup .auth-main { flex: 1; min-width: 0; }

/* ---------- hero (always dark, brand panel) ---------- */
.auth-modal .auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 22px;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(60, 191, 240, .22) 0%, rgba(60, 191, 240, 0) 60%),
    linear-gradient(160deg, #0d2634 0%, #101018 62%, #0c0c12 100%);
  color: #e6eef3;
}
.auth-modal .auth-hero__badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(60, 191, 240, .4);
  background: rgba(60, 191, 240, .14);
  color: #8edcf9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.auth-modal .auth-hero__title {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.auth-modal .auth-hero__sub {
  font-size: 13px;
  color: #aebbc4;
  margin-top: -6px;
}
.auth-modal .auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 2px 0 0;
  padding: 0;
}
.auth-modal .auth-benefit {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #dbe6ec;
}
.auth-modal .auth-benefit i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(60, 191, 240, .13);
  border: 1px solid rgba(60, 191, 240, .22);
  color: var(--am-accent);
  font-style: normal;
}
.auth-modal .auth-benefit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-modal .auth-hero__trust {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11.5px;
  line-height: 1.6;
  color: #8b98a3;
}

/* ---------- main column ---------- */
.auth-modal .auth-main {
  display: flex;
  flex-direction: column;
  padding: 20px 26px 22px;
}
.auth-modal--login .auth-main { padding: 20px 24px 22px; }

/* ---------- tabs ---------- */
.auth-modal .auth-tabs {
  display: flex;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--am-surface);
}
.auth-modal--signup .auth-tabs { margin-right: 40px; }
.auth-modal .auth-tab {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--am-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.auth-modal .auth-tab:hover { color: var(--am-text); }
.auth-modal .auth-tab.is-active {
  background: var(--am-accent);
  color: var(--am-accent-ink);
  pointer-events: none;
  cursor: default;
}
html.light .auth-modal .auth-tab.is-active { color: #fff; }

/* ---------- form ---------- */
.auth-modal .modal-holder { width: 100%; }
.auth-modal form { width: 100%; }
.auth-modal .row { margin-bottom: 14px; position: relative; }
.auth-modal form .row:last-child, .auth-modal .row.auth-actions { margin-bottom: 0; }

.auth-modal label.field-label {
  display: block;
  margin-bottom: 6px;
  padding-left: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--am-muted);
}
.auth-modal .auth-input-wrap { position: relative; }

html .auth-modal .textfield {
  font-family: Quicksand, Roboto, sans-serif;
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--am-border);
  background: var(--am-surface-2);
  color: var(--am-text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
html .auth-modal .textfield::placeholder { color: var(--am-muted); opacity: .75; font-weight: 500; }
html .auth-modal .textfield:focus {
  border-color: var(--am-accent);
  box-shadow: 0 0 0 3px rgba(60, 191, 240, .16);
}
html .auth-modal .textfield.error { border-color: var(--am-error); }
.auth-modal .auth-input-wrap .textfield { padding-right: 52px; }
.auth-modal .auth-input-wrap .textfield[type="text"][name="username"],
.auth-modal .auth-input-wrap .textfield[name="email"] { padding-right: 20px; }

/* password visibility toggle */
.auth-modal .auth-pass-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--am-muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.auth-modal .auth-pass-toggle:hover { background: var(--am-surface); color: var(--am-text); }
.auth-modal .auth-pass-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-modal .auth-pass-toggle .auth-eye-off { display: none; }
.auth-modal .auth-pass-toggle.is-visible .auth-eye { display: none; }
.auth-modal .auth-pass-toggle.is-visible .auth-eye-off { display: block; }

/* errors */
html .auth-modal .field-error {
  position: static;
  margin-top: 5px;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--am-error);
}
html .auth-modal .generic-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 90, 90, .35);
  background: rgba(255, 80, 80, .1);
  color: var(--am-error);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
html .auth-modal .generic-error.hidden { display: none; }
.auth-modal .auth-note {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(60, 191, 240, .3);
  background: rgba(60, 191, 240, .1);
  color: #8edcf9;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
html.light .auth-modal .auth-note { color: #147ca1; }

/* remember me + forgot password row */
.auth-modal .auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.auth-modal .auth-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--am-muted);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.auth-modal .auth-check__box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 2px solid var(--am-border);
  background: var(--am-surface-2);
  transition: background .2s, border-color .2s;
}
.auth-modal .auth-check__box svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--am-accent-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .15s;
}
.auth-modal .auth-check input:checked ~ .auth-check__box {
  background: var(--am-accent);
  border-color: var(--am-accent);
}
.auth-modal .auth-check input:checked ~ .auth-check__box svg { opacity: 1; }
html.light .auth-modal .auth-check__box svg { stroke: #fff; }
.auth-modal .auth-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--am-accent);
  text-decoration: none;
  cursor: pointer;
}
.auth-modal .auth-link:hover { text-decoration: underline; }
.auth-modal .auth-options > .auth-link { margin-left: auto; }

/* captcha */
.auth-modal .bottom.captcha { display: block; }
.auth-modal .auth-captcha-hint {
  margin-bottom: 8px;
  padding-left: 14px;
  font-size: 12px;
  color: var(--am-muted);
}
.auth-modal .captcha-control .image {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-modal .captcha-control .image img {
  flex-shrink: 0;
  width: 120px;
  height: 48px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--am-border);
  cursor: pointer;
}
.auth-modal .captcha-control .image label.field-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.auth-modal .captcha-control .image > div:last-child,
.auth-modal .captcha-control .image .auth-input-wrap { flex: 1; }
.auth-modal .captcha-control .field-error.up,
.auth-modal .captcha-control .field-error.down { position: static; }
.auth-modal .captcha-control [data-recaptcha-key] { margin-bottom: 10px; }

/* submit */
html .auth-modal .bottom { display: block; }
html .auth-modal .bottom [type="submit"],
html .auth-modal .auth-submit {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--am-accent);
  color: var(--am-accent-ink);
  font-family: Quicksand, Roboto, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
}
html .auth-modal .bottom [type="submit"]:hover,
html .auth-modal .auth-submit:hover {
  background: var(--am-accent-hover);
  box-shadow: 0 8px 22px rgba(60, 191, 240, .3);
  transform: translateY(-1px);
  filter: none;
}
html.light .auth-modal .bottom [type="submit"], html.light .auth-modal .auth-submit { color: #fff; }

.auth-modal .auth-reassure {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--am-muted);
}
.auth-modal .auth-legal {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--am-muted);
}
.auth-modal .auth-legal a { color: var(--am-muted); text-decoration: underline; }

/* switch line (bottom of signup) & helper links */
.auth-modal .auth-switch {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--am-border);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--am-muted);
}
.auth-modal .auth-switch a { margin-left: 6px; }
.auth-modal .auth-helper {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
}
.auth-modal .auth-helper a {
  color: var(--am-muted);
  text-decoration: underline;
  cursor: pointer;
}
.auth-modal .auth-helper a:hover { color: var(--am-text); }

/* ---------- login upsell ---------- */
.auth-modal .auth-upsell {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(60, 191, 240, .25);
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(60, 191, 240, .14) 0%, rgba(60, 191, 240, 0) 55%),
    linear-gradient(135deg, rgba(60, 191, 240, .08), rgba(60, 191, 240, .02));
}
.auth-modal .auth-upsell__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--am-text);
  margin-bottom: 6px;
}
.auth-modal .auth-upsell__text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--am-muted);
  margin-bottom: 12px;
}
.auth-modal .auth-upsell__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--am-accent);
  color: var(--am-accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.auth-modal .auth-upsell__cta:hover {
  background: var(--am-accent);
  color: var(--am-accent-ink);
}
html.light .auth-modal .auth-upsell__cta:hover { color: #fff; }

/* ---------- compact modals (reset / resend) ---------- */
.auth-modal--compact .auth-main { padding: 22px 24px; }
.auth-modal .auth-title {
  margin: 4px 0 6px;
  padding-right: 40px;
  font-size: 20px;
  font-weight: 800;
  color: var(--am-text);
}
.auth-modal .auth-intro {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--am-muted);
}

/* ---------- success state ---------- */
html .auth-modal .success {
  padding: 26px 6px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--am-text);
}
html .auth-modal .success::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233cbff0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 26px no-repeat,
    rgba(60, 191, 240, .12);
  border: 2px solid rgba(60, 191, 240, .4);
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 719px) {
  html .modal-inner.auth-modal--signup {
    display: block;
    width: min(440px, calc(100vw - 40px));
  }
  html .modal-inner.auth-modal,
  html .modal-inner.auth-modal--login { width: min(440px, calc(100vw - 40px)); }
  .auth-modal--signup .auth-hero { width: auto; }
  .auth-modal .auth-hero {
    gap: 10px;
    padding: 20px 20px 16px;
    padding-right: 56px;
  }
  .auth-modal .auth-hero__title { font-size: 19px; }
  .auth-modal .auth-hero__sub { display: none; }
  .auth-modal .auth-benefits {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .auth-modal .auth-benefit {
    gap: 7px;
    padding: 6px 12px 6px 7px;
    border-radius: 999px;
    background: rgba(60, 191, 240, .1);
    border: 1px solid rgba(60, 191, 240, .18);
    font-size: 11.5px;
  }
  .auth-modal .auth-benefit i {
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
  }
  .auth-modal .auth-benefit svg { width: 14px; height: 14px; }
  .auth-modal .auth-hero__trust {
    margin-top: 4px;
    padding-top: 10px;
    font-size: 11px;
  }
  .auth-modal .auth-main { padding: 16px 18px 18px; }
  .auth-modal--login .auth-main { padding: 16px 18px 18px; }
  .auth-modal .auth-tabs { margin-bottom: 14px; }
  .auth-modal--signup .auth-tabs { margin-right: 0; }
  .auth-modal .row { margin-bottom: 12px; }
  .auth-modal .captcha-control .image img { width: 104px; }
}
