/* ==========================================================================
   The Hour — auth
   ========================================================================== */

.auth {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: calc(100dvh - var(--bar));
}
.auth__side {
  position: relative;
  min-height: 360px;
  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 30%, rgba(27,16,24,0.88));
}
.auth__pitch {
  position: relative;
  z-index: 1;
  padding: 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.auth__pitch h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
}
.auth__pitch p { margin: 0 0 16px; color: var(--muted); }
.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: 15px;
}
.auth__list .t { font-family: var(--mono); color: var(--copper); min-width: 2.4em; }

.auth__main {
  background: var(--velvet);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}
.auth__offer {
  width: min(440px, 100%);
  background: var(--plum);
  border: 1px solid var(--line);
  padding: 28px 26px;
  position: relative;
}
.auth__offer::before,
.auth__offer::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--velvet);
  border-radius: 50%;
  transform: translateY(-50%);
}
.auth__offer::before { left: -9px; }
.auth__offer::after { right: -9px; }
.auth__offer h1 { margin: 0 0 8px; font-size: 34px; }
.auth__lede { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--display); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field__wrap {
  display: flex;
  align-items: center;
  background: var(--velvet);
  border: 1px solid var(--line);
  min-height: 48px;
}
.field__wrap:focus-within { border-color: var(--copper); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--pearl);
  padding: 12px 14px;
  outline: none;
}
.field input::placeholder { color: rgba(203, 180, 174, 0.45); }
.reveal {
  background: none;
  border: 0;
  color: var(--copper);
  padding: 0 14px;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
}
.field__err { display: block; min-height: 1.1em; font-size: 12px; color: #e7a0a8; margin-top: 4px; }
.field.invalid .field__wrap { border-color: #9b1b2e; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--copper); flex-shrink: 0; }
.check label { font-weight: 400; font-size: 14px; color: var(--muted); margin: 0; font-family: var(--serif); }
.check a { color: var(--copper); }
.form__actions { margin-top: 8px; }
.auth__alt { margin: 16px 0 0; font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px dashed var(--line); }
.auth__alt a { color: var(--copper); }
.auth__legal { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.auth__meta { margin: 12px 0 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blush); }

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14, 9, 12, 0.78);
  padding: 20px;
}
.modal.open { display: flex; }
.modal__box {
  width: min(440px, 100%);
  background: var(--velvet);
  border: 1px solid var(--line);
}
.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(--copper);
  border-bottom: 1px dashed var(--line);
}
.modal__body { padding: 22px 22px 8px; }
.modal__body h2 { margin: 0 0 8px; font-size: 26px; }
.modal__body p { margin: 0 0 16px; color: var(--muted); 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(--plum);
  border: 1px solid var(--line);
  color: var(--pearl);
}
.otp input:focus { border-color: var(--copper); 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(--copper);
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
}
