/* AUTH_CLEAN_V1 (2026-12-01, owner: "on login popup fix the style to be clean").
   Restyles the header login/register popup (.pm-overlay > .au, Header2 component) site-wide.
   Injected via the nginx '<head>' sub_filter on every front page; loaded early, so rules use
   higher specificity + !important to beat the component's scoped CSS. */
.pm-overlay > .au {
  background: #fff !important;
  color: #1c2024 !important;
  border-radius: 16px !important;
  max-width: 420px !important;
  padding: 0 28px 24px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) !important;
  overflow: hidden;
  animation: auIn .18s ease-out;
}
@keyframes auIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

/* brand band with the site logo */
.pm-overlay > .au::before {
  content: "";
  display: block;
  height: 72px;
  margin: 0 -28px 24px;
  background: url("/images/brand/logo-desktop-dark.webp") center / auto 30px no-repeat,
              linear-gradient(135deg, #0f5a41 0%, #0a3a2a 60%, #082b20 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.pm-overlay > .au .au__field {
  background: #f5f6f8 !important;
  border: 1px solid #dfe2e6 !important;
  border-radius: 10px !important;
  height: 50px !important;
  margin-bottom: 12px !important;
  padding: 0 14px !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pm-overlay > .au .au__field:focus-within {
  background: #fff !important;
  border-color: #14a06a !important;
  box-shadow: 0 0 0 3px rgba(20, 160, 106, .16) !important;
}
.pm-overlay > .au .au__field input {
  color: #1c2024 !important;
  font-size: 15px !important;
}
.pm-overlay > .au .au__field input::placeholder { color: #8a9098 !important; }
.pm-overlay > .au .au__field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #f5f6f8 inset !important;
  -webkit-text-fill-color: #1c2024 !important;
}
.pm-overlay > .au .au__ico { color: #8a9098 !important; }
.pm-overlay > .au .au__ico:hover { color: #1c2024 !important; }

.pm-overlay > .au .au__submit {
  border-radius: 10px !important;
  height: 50px !important;
  margin-top: 6px !important;
  background: #14a06a !important;
  font-size: 16px !important;
  letter-spacing: .2px;
  box-shadow: 0 6px 16px rgba(20, 160, 106, .28);
  transition: background .15s ease, transform .1s ease;
}
.pm-overlay > .au .au__submit:hover:not(:disabled) { background: #0f8a5a !important; }
.pm-overlay > .au .au__submit:active:not(:disabled) { transform: translateY(1px); }

.pm-overlay > .au .au__swap {
  margin-top: 16px !important;
  padding: 11px 0 !important;
  border: 1px solid #dfe2e6 !important;
  border-radius: 10px !important;
  color: #0f7a55 !important;
  font-size: 14.5px !important;
}
.pm-overlay > .au .au__swap:hover { background: #f5f6f8 !important; text-decoration: none !important; }

.pm-overlay > .au .au__forgot {
  color: #5b636b !important;
  font-size: 13px !important;
  margin-top: 16px !important;
}
.pm-overlay > .au .au__forgot button { color: #0f7a55 !important; padding: 0 2px; }
.pm-overlay > .au .au__note { color: #5b636b !important; }
.pm-overlay > .au .au__err {
  background: #fdecec;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 10px !important;
}

/* register view: any select/checkbox rows inside the same card */
.pm-overlay > .au select {
  background: #f5f6f8 !important; border: 1px solid #dfe2e6 !important; border-radius: 10px !important; color: #1c2024 !important;
}
.pm-overlay > .au input[type="checkbox"] { accent-color: #14a06a; }

@media (max-width: 520px) {
  .pm-overlay > .au { padding: 0 18px 20px !important; border-radius: 14px !important; }
  .pm-overlay > .au::before { margin: 0 -18px 20px; height: 64px; background-size: auto 26px, auto; }
}
