/* ==========================================================================
   Espace Jix · auth
   ========================================================================== */

.auth {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  min-height: calc(100dvh - var(--rail-h));
}

.auth__side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
}
.auth__shot {
  position: absolute;
  inset: 0;
}
.auth__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.auth__side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,21,15,0.15), rgba(7,21,15,0.88));
}
.auth__pitch {
  position: relative;
  z-index: 1;
  padding: 36px 32px 40px;
}
.auth__pitch h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  font-style: italic;
}
.auth__pitch > p { margin: 0 0 18px; color: var(--ivory-dim); }
.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(--bronze);
  min-width: 1.8em;
}

.auth__main {
  background: var(--felt);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 64%, rgba(0,0,0,0.18) 0 1px, transparent 1.5px);
  background-size: 7px 7px, 9px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth__offer {
  width: min(460px, 100%);
  background: rgba(7, 21, 15, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.auth__offer h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-style: italic;
}
.auth__lede {
  margin: 0 0 24px;
  color: var(--ivory-dim);
  font-size: 15px;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field__wrap {
  display: flex;
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
}
.field__wrap:focus-within { border-color: var(--bronze); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ivory);
  padding: 12px 14px;
  outline: none;
}
.field input::placeholder { color: rgba(201, 191, 176, 0.45); }
.reveal {
  background: transparent;
  border: 0;
  color: var(--bronze-bright);
  padding: 0 14px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
}
.field__err {
  display: block;
  min-height: 1.1em;
  font-size: 12px;
  color: #e7a0a8;
  margin-top: 4px;
}
.field.invalid .field__wrap { border-color: var(--crimson); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--bronze);
  flex-shrink: 0;
}
.check label { font-weight: 400; font-size: 14px; color: var(--ivory-dim); margin: 0; }
.check a { color: var(--bronze-bright); }

.form__actions { margin-top: 8px; }
.auth__alt {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ivory-dim);
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.auth__alt a { color: var(--bronze-bright); }
.auth__legal {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ivory-dim);
  line-height: 1.5;
}
.auth__meta {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201, 191, 176, 0.6);
  display: flex;
  gap: 8px;
}

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { min-height: 260px; }
}

/* ---------- OTP modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 21, 15, 0.72);
  padding: 20px;
}
.modal.open { display: flex; }
.modal__box {
  width: min(440px, 100%);
  background: var(--felt);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal__hd {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  border-bottom: 1px dashed var(--line);
  background: var(--felt-deep);
}
.modal__body { padding: 22px 22px 8px; }
.modal__body h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-style: italic;
}
.modal__body p { margin: 0 0 16px; color: var(--ivory-dim); 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(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ivory);
}
.otp input:focus { border-color: var(--bronze); 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(--bronze-bright);
  min-height: 44px;
  font-weight: 600;
}


/* 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;
  }
}
