/* Overflow clip — moved from login.html so auth pages share one stylesheet */
body.page-login { overflow-x: clip; }
main[data-login-page],
main[data-partners-login-page] { overflow-x: clip; width: 100%; max-width: 100%; }

.auth-discovery {
  position: relative; isolation: isolate;
  min-height: calc(100dvh - var(--fo-header));
  padding: clamp(22px, 3vw, 38px) 0;
  display: grid; align-items: center;
}
.auth-discovery .auth-card {
  grid-template-columns: minmax(270px, .82fr) minmax(350px, 1.18fr);
  max-width: 880px; min-height: 455px;
  border-radius: 22px; border: 1px solid rgba(213,220,227,.8);
  box-shadow: 0 22px 56px rgba(15,23,42,.11);
}
.auth-discovery .auth-card__panel {
  padding: clamp(28px, 4vw, 40px); justify-content: flex-end;
  background: linear-gradient(150deg, #183b68 0%, #295f9f 52%, #357abd 100%);
}
.auth-discovery__map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.auth-discovery__map .contour { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.2; }
.auth-discovery__map .route {
  fill: none; stroke: rgba(255,255,255,.82); stroke-width: 2;
  stroke-linecap: round; stroke-dasharray: 6 8;
}
.auth-discovery__map .route-dot { fill: #fff; }
.auth-discovery__map .route-pin { fill: var(--fo-orange); }
.auth-discovery__brand {
  position: absolute; z-index: 2; top: 26px; inset-inline-start: 28px;
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: .92rem; font-weight: 700;
}
.auth-discovery__brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.auth-discovery .auth-card__panel h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); max-width: 12ch; }
.auth-discovery .auth-card__panel p { max-width: 30ch; font-size: .86rem; }
.auth-discovery .auth-card__bg-logo { display: none; }
.auth-discovery .auth-card__form {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 44px);
}
.auth-discovery__heading { margin-bottom: 20px; }
.auth-discovery__heading h1 {
  margin: 0 0 8px; font-family: var(--fo-font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.7rem); line-height: 1.25;
}
.auth-discovery__heading p { margin: 0; color: var(--fo-text-muted); font-size: .9rem; line-height: 1.6; }
.auth-discovery .auth-alert {
  display: block;
  position: static;
  margin: 0 0 14px;
}
.auth-discovery .otp-row { margin-top: 0; }
.auth-discovery .auth-card__form .field { margin-bottom: 12px; }
.auth-discovery .auth-field input,
.auth-discovery .auth-field select { min-height: 40px; }
.auth-discovery .auth-card__form .btn--primary,
.auth-discovery .auth-card__form .btn--orange { min-height: 44px; }
.auth-discovery .auth-card__meta { justify-content: flex-end; }
.auth-discovery__foot {
  margin: 16px 0 0; text-align: center;
  color: var(--fo-text-muted); font-size: .86rem;
}
.auth-discovery__foot a { color: var(--fo-blue-dark); font-weight: 700; text-decoration: none; }
.auth-discovery__foot a:hover { text-decoration: underline; }
.auth-discovery--tall .auth-card { min-height: 545px; }
.auth-discovery--tall .auth-card__form { padding-block: 28px; }
@media (max-width: 800px) {
  .auth-discovery { display: block; min-height: 0; padding: 12px 0 32px; }
  .auth-discovery .container { padding-inline: 14px; }
  .auth-discovery .auth-card {
    grid-template-columns: 1fr; min-height: 0;
    border-radius: 16px; box-shadow: 0 14px 36px rgba(15,23,42,.09);
  }
  .auth-discovery .auth-card__panel {
    min-height: 112px; padding: 54px 18px 14px;
    justify-content: flex-end;
  }
  .auth-discovery .auth-card__panel h2 { font-size: 1.05rem; max-width: none; line-height: 1.3; }
  .auth-discovery .auth-card__panel p { display: none; }
  .auth-discovery__brand { top: 13px; inset-inline-start: 17px; font-size: .8rem; }
  .auth-discovery__brand img { height: 30px; width: auto; object-fit: contain; }
  .auth-discovery__map { height: 125px; }
  .auth-discovery__map .route,
  .auth-discovery__map .route-dot,
  .auth-discovery__map .route-pin { display: none; }
  .auth-discovery .auth-card__panel::before {
    content: "";
    position: absolute; z-index: 1;
    top: 100px; inset-inline-start: calc(20% + 16px);
    width: min(42vw, 160px); height: 58px;
    background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 72'%3E%3Cpath d='M4 64C38 62 53 43 72 32S112 23 153 18' fill='none' stroke='white' stroke-opacity='.82' stroke-width='2' stroke-linecap='round' stroke-dasharray='6 8'/%3E%3Ccircle cx='4' cy='64' r='4' fill='white'/%3E%3C/svg%3E");
    pointer-events: none;
  }
  .auth-discovery .auth-card__panel::after {
    content: "";
    position: absolute; z-index: 1;
    top: 95px; inset-inline-start: 20%;
    width: 30px; height: 39px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cpath fill='%23F58220' d='M20 1A19 19 0 0 0 1 20c0 17.5 19 31 19 31s19-13.5 19-31A19 19 0 0 0 20 1Z'/%3E%3Ccircle cx='20' cy='20' r='7' fill='white'/%3E%3C/svg%3E");
    filter: drop-shadow(0 6px 10px rgba(15,23,42,.18));
    pointer-events: none;
  }
  .auth-discovery .auth-card__form { padding: 20px 18px 24px; }
  .auth-discovery__heading { margin-bottom: 18px; }
  .auth-discovery__heading h1 { font-size: 1.3rem; margin-bottom: 5px; }
  .auth-discovery__heading p { font-size: .82rem; }
  .auth-discovery .auth-card__form .field { margin-bottom: 11px; }
  .auth-discovery .auth-field input,
  .auth-discovery .auth-field select { min-height: 40px; }
  .auth-discovery .auth-card__form .btn--primary,
  .auth-discovery .auth-card__form .btn--orange { min-height: 44px; }
  .auth-discovery__foot { margin-top: 14px; font-size: .8rem; }
  .auth-discovery .otp-row { gap: 5px; margin-bottom: 16px; }
  .auth-discovery .otp-row input { width: min(38px, 11.5vw); height: 40px; border-radius: 8px; }
}

body.page-register,
body.page-otp,
body.page-forgot,
body.page-reset { overflow-x: clip; }
body.page-register main,
body.page-otp main,
body.page-forgot main,
body.page-reset main {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

.auth-discovery__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-inline-form { display: inline; margin: 0; }
.auth-text-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fo-blue-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-text-btn:hover { text-decoration: underline; }

/* login.html <style> previously won these over the shared 800px rules */
@media (max-width: 800px) {
  .page-login .auth-discovery__heading p { font-size: .9rem; }
  .page-login .auth-discovery .auth-card__form .field { margin-bottom: 13px; }
  .page-login .auth-discovery__foot {
    margin: 16px 0 0;
    font-size: .86rem;
  }
}
