/* ==========================================================================
   The Circuit — auth
   ========================================================================== */

.auth {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: calc(100dvh - var(--nav));
}
.auth__side {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.auth__side img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.auth__side::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(10,6,24,0.9));
}
.auth__pitch {
  position: relative;
  z-index: 1;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.auth__pitch h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 40px); }
.auth__pitch p { margin: 0 0 14px; color: var(--fog); }
.auth__list { list-style: none; margin: 0; padding: 0; }
.auth__list li {
  display: flex; gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.auth__list .t { font-family: var(--mono); color: var(--gold); min-width: 3em; }

.auth__main {
  background: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}
.auth__offer {
  width: min(440px, 100%);
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: var(--glow);
}
.auth__offer h1 { margin: 0 0 8px; font-size: 32px; }
.auth__lede { margin: 0 0 20px; color: var(--fog); font-size: 15px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field__wrap {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 48px;
}
.field__wrap:focus-within { border-color: var(--magenta); box-shadow: var(--glow); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  flex: 1; min-width: 0;
  background: transparent; border: 0;
  color: var(--white);
  padding: 12px 14px;
  outline: none;
}
.field input::placeholder { color: rgba(201, 196, 222, 0.4); }
.reveal {
  background: none; border: 0;
  color: var(--gold);
  padding: 0 14px;
  min-height: 44px;
  font-weight: 700;
  font-size: 13px;
}
.field__err { display: block; min-height: 1.1em; font-size: 12px; color: #ff9ab8; margin-top: 4px; }
.field.invalid .field__wrap { border-color: #ff4d7a; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--magenta); flex-shrink: 0; }
.check label { font-weight: 400; font-size: 14px; color: var(--fog); margin: 0; }
.check a { color: var(--gold); }
.form__actions { margin-top: 8px; }
.auth__alt { margin: 16px 0 0; font-size: 14px; color: var(--fog); padding-top: 14px; border-top: 1px dashed var(--line); }
.auth__alt a { color: var(--gold); }
.auth__legal { margin: 14px 0 0; font-size: 12px; color: var(--fog); }
.auth__meta { margin: 12px 0 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog); font-family: var(--mono); }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { min-height: 220px; }
}
@media (max-width: 400px) {
  .otp { gap: 6px; }
  .otp input { width: 40px; height: 48px; }
}

.modal {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 6, 24, 0.82);
  padding: 20px;
}
.modal.open { display: flex; }
.modal__box {
  width: min(440px, 100%);
  background: var(--indigo);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.modal__hd {
  display: flex; justify-content: space-between;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px dashed var(--line);
}
.modal__body { padding: 22px 22px 8px; }
.modal__body h2 { margin: 0 0 8px; font-size: 24px; }
.modal__body p { margin: 0 0 16px; color: var(--fog); font-size: 14px; }
.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input {
  width: 48px; height: 56px;
  text-align: center;
  font-family: var(--mono);
  font-size: 22px;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
}
.otp input:focus { border-color: var(--magenta); outline: none; }
.modal__note { font-size: 12px !important; }
.modal__ft { display: flex; align-items: center; gap: 10px; padding: 16px 22px 22px; }
.modal__resend {
  margin-left: auto;
  background: none; border: 0;
  color: var(--gold);
  min-height: 44px;
  font-weight: 700;
}


/* generated footer/legal polish */
.domain-note {
  padding: clamp(28px, 5vw, 56px) 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.domain-note .wrap {
  max-width: min(1120px, calc(100% - 40px));
}
.domain-note .eyebrow {
  margin-bottom: 10px;
}
.domain-note h2 {
  max-width: 19ch;
  margin: 0 0 14px !important;
  font-size: clamp(1.45rem, 3vw, 2.6rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}
.domain-note .body-copy {
  max-width: 76ch;
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-address {
  box-sizing: border-box;
  width: 100%;
  max-width: 76ch;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  font-size: clamp(12px, 0.92vw, 14px);
  line-height: 1.55;
}
.legal-address p {
  max-width: none !important;
  margin: 0 !important;
}
.legal-address p + p {
  margin-top: 8px !important;
}
.legal-address strong {
  color: inherit;
  font-weight: 700;
}
.legal-address__note {
  opacity: 0.86;
}
.ftr__bot,
.foot__legal,
.footer-grid,
.footer-inner {
  flex-wrap: wrap;
}
.ftr__bot .legal-address,
.foot__legal .legal-address {
  flex: 1 1 100%;
}
.footer .legal-address {
  grid-column: 1 / -1;
}
.footer-inner .legal-address,
.footer-grid .legal-address {
  flex: 1 1 100%;
}
.legal-address--standalone {
  display: block;
  max-width: min(960px, calc(100% - 32px));
  margin: 24px auto;
}
@media (max-width: 560px) {
  .domain-note .wrap {
    max-width: calc(100% - 32px);
  }
  .legal-address {
    padding: 14px 15px;
  }
}
