/* ===========================================================
   Online Gambling V1 — auth.css
   Register / Log in layout, form fields, OTP modal
   =========================================================== */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}
.auth__aside { position: relative; overflow: hidden; background: var(--bg-deep); }
.auth__aside img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 34%;
}
.auth__aside::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,8,7,.95) 0%, rgba(9,8,7,.45) 42%, rgba(9,8,7,.1) 100%);
}
.auth__asidein {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(30px, 4vw, 56px);
  max-width: 560px; margin-left: auto;
}
.auth__asidein h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(27px, 3.1vw, 42px); line-height: 1.06; letter-spacing: -.014em;
  margin-top: 16px;
  font-variation-settings: 'opsz' 90, 'wght' 420, 'SOFT' 0, 'WONK' 1;
}
.auth__asidein h2 .amt { color: var(--amber); font-variant-numeric: tabular-nums; }
.auth__asidein p { margin-top: 16px; color: var(--muted); max-width: 34ch; }
.auth__asidefine { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair); max-width: 40ch; }

.auth__main {
  display: flex; align-items: center; justify-content: flex-start;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 4vw, 64px);
}
.auth__card { width: 100%; max-width: 470px; }
.auth__card h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04; letter-spacing: -.014em;
  margin-top: 14px;
  font-variation-settings: 'opsz' 60, 'wght' 600, 'SOFT' 0, 'WONK' 0;
}
.auth__intro { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
.auth__switch { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--muted); }
.auth__switch a { color: var(--amber); font-weight: 500; }
.auth__legal { margin-top: 22px; }

/* ---------- Form ---------- */
.form { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--olive); font-weight: 500;
}
.field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 15px;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field input::placeholder { color: #6E685D; }
.field input:hover { border-color: rgba(242,237,228,.24); }
.field input:focus { outline: none; border-color: var(--amber); background: var(--surface-2); }
.field input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(224,165,38,.22); }
.field__err {
  display: none; font-size: 12.5px; color: #E8836A; letter-spacing: .01em;
}
.field.is-invalid input { border-color: #B4543C; }
.field.is-invalid .field__err { display: block; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__row a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.field__row a:hover { color: var(--amber); }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); }
.check label { font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.5; font-weight: 400; }
.check label a { color: var(--text); }
.check.is-invalid label { color: #E8836A; }

.form__submit { margin-top: 6px; }

/* ---------- OTP modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  padding: 22px;
  background: rgba(6, 5, 4, .82);
}
.modal.is-open { display: flex; }
.modal__box {
  width: 100%; max-width: 452px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--amber);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.modal__box h2 {
  font-family: var(--display); font-weight: 600; font-size: 27px;
  line-height: 1.1; letter-spacing: -.012em; margin-top: 12px;
}
.modal__p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.modal__p b { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.otp { display: flex; gap: 9px; margin-top: 26px; }
.otp input {
  flex: 1 1 0; min-width: 0;
  height: 58px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color .16s var(--ease);
}
.otp input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224,165,38,.22); }
.modal__actions { display: flex; gap: 10px; margin-top: 24px; }
.modal__actions .btn { flex: 1 1 auto; }
.modal__foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline;
  font-size: 13px; color: var(--muted);
}
.modal__foot button { color: var(--amber); font-size: 13px; font-weight: 500; padding: 0; }

@media (max-width: 940px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__aside { min-height: 400px; order: -1; }
  .auth__aside img { object-position: 50% 18%; }
  .auth__aside::after {
    background: linear-gradient(to top, rgba(9,8,7,.97) 0%, rgba(9,8,7,.92) 34%, rgba(9,8,7,.55) 66%, rgba(9,8,7,.15) 100%);
  }
  .auth__asidein { max-width: none; margin-left: 0; padding: 120px var(--gutter) 34px; }
  .auth__asidein p { max-width: 42ch; }
  .auth__asidefine { max-width: 46ch; }
  .auth__main { padding: 40px var(--gutter) 64px; justify-content: center; }
  .auth__card { max-width: 520px; }
}
@media (max-width: 460px) {
  .otp { gap: 6px; }
  .otp input { height: 50px; font-size: 20px; }
  .modal__actions { flex-direction: column-reverse; }
}
