/* Header Auth Modal (separate from dashboard styles) */
#srh-auth {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif !important;
}

.srh {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.srh.is-open {
  display: flex;
}

.srh__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.srh__dialog {
  position: relative;
  width: min(1020px, 96vw);
  height: min(620px, 86vh);
  background: transparent;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.srh__back {
  position: absolute;
  right: 18px;
  top: 22px;
  z-index: 4;
  width: 15px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.srh__panel {
  position: relative;
}
.srh__panel--left {
  background: #fff;
  padding: 34px 34px 26px;
}
body.s-dark .srh__panel--left {
  background: #0f172a;
  color: #e5e7eb;
}
body.s-dark .srh__panel--left .srh__sub,
body.s-dark .srh__panel--left .srh__help,
body.s-dark .srh__panel--left .srh__tos {
  color: #94a3b8;
}

.srh__panel--right {
  background: linear-gradient(135deg, var(--srh-grad-1), var(--srh-grad-2));
  background-size: cover;
  background-position: center;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.srh__panel--right[style*="background-image"] {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15)),
    var(--srh-grad-1);
  background-size: cover;
}

.srh__head {
  margin-bottom: 14px;
}
.srh__title {
  margin: 0;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.srh__sub {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
}

.srh__tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: #f1f5f9;
  margin: 18px 0 14px;
}
body.s-dark .srh__tabs {
  background: rgba(255, 255, 255, 0.06);
}

.srh__tab {
  flex: 1;
  padding: 2px 12px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  background: transparent;
  color: #64748b;
}
body.s-dark .srh__tab {
  color: #94a3b8;
}
.srh__tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}
body.s-dark .srh__tab.is-active {
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.srh__alert {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  margin: 10px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.srh__alert--error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.25);
}
.srh__alert--ok {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.25);
}

.srh__body {
  margin-top: 14px;
}
.srh__pane {
  display: none;
}
.srh__pane.is-active {
  display: block;
}

.srh__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.srh__field span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}
body.s-dark .srh__field span {
  color: #94a3b8;
}

.srh__field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  outline: none;
  font-size: 13px;
}
body.s-dark .srh__field input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}
.srh__field input:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.srh__pw {
  position: relative;
}
.srh__pwBtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 36px;
  border-radius: 0px;
  border: 0;
  background: 0;
  cursor: pointer;
  color: #818181a3;
  box-shadow: none;
}
body.s-dark .srh__pwBtn {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.srh__help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}
.srh__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.srh__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}
body.s-dark .srh__check {
  color: #94a3b8;
}

.srh__link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}
.srh__link:hover {
  text-decoration: underline;
}

/* IMPORTANT: Use unique classes so SmartMag doesn't override */
.srh__btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  outline: none !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 2px 0px !important;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}
.srh__btn--primary {
  color: #fff !important;
  background: linear-gradient(
    90deg,
    var(--srh-grad-1),
    var(--srh-grad-2)
  ) !important;
}
.srh__btn--social {
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  padding: 10px 5px !important;
}
body.s-dark .srh__btn--social {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e5e7eb !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.srh__divider {
  position: relative;
  text-align: center;
  margin: 14px 0 10px;
}
.srh__divider:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
body.s-dark .srh__divider:before {
  border-top-color: rgba(255, 255, 255, 0.12);
}
.srh__divider span {
  position: relative;
  padding: 0 10px;
  font-size: 12px;
  color: #64748b;
  background: #fff;
}
body.s-dark .srh__divider span {
  background: #0f172a;
  color: #94a3b8;
}

.srh__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srh__tos {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}

/* Quote on image */
.srh__quote {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 14px 14px;
  color: #fff;
  max-width: 360px;
}
.srh__quoteTxt {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
}
.srh__quoteBy {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.85;
}

.srh__navArrows {
  display: none;
  gap: 10px;
}
.srh__arrow {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 900px) {
  .srh__dialog {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 92vh;
  }
  .srh__panel--right {
    display: none;
  }
  .srh__panel--left {
    padding: 24px 18px 18px;
  }
  .srh__title {
    font-size: 20px;
  }
}
