/* ===================================================================
   Bank Jakarta Gold — Auth pages (login / register)
   Reuses tokens from styles.css
=================================================================== */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

/* ---------- Left: brand / visual panel ---------- */
.auth__aside {
  position: relative;
  background: linear-gradient(160deg, #17130e, #000);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth__aside::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.32), transparent 65%);
}
.auth__brand { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.auth__brand .brand__text { color: #fff; }

.auth__aside-body { position: relative; max-width: 420px; }
.auth__aside-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.auth__aside-body p { color: rgba(255, 255, 255, 0.66); font-size: 1.05rem; }

.auth__bar {
  position: absolute;
  bottom: -40px;
  right: 40px;
  width: 150px;
  height: 220px;
  border-radius: 16px;
  transform: rotate(-10deg);
  background: linear-gradient(150deg, #f6e6a8, #e6c454 40%, #c9a227 70%, #a9821c);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  color: #6b520f;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.auth__points { position: relative; display: flex; flex-direction: column; gap: 14px; }
.auth__point { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.auth__point .dot { background: var(--gold); }

/* ---------- Right: form panel ---------- */
.auth__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--warm);
}
.auth__card {
  width: 100%;
  max-width: 420px;
}
.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.auth__back:hover { color: var(--ink); }
.auth__title { font-family: var(--font-serif); font-size: 2rem; letter-spacing: -0.02em; }
.auth__subtitle { color: var(--muted); margin-top: 8px; margin-bottom: 30px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}
.field input::placeholder { color: #b3b0a8; }

.field__pw { position: relative; }
.field__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 8px;
}

.field__error { display: block; color: var(--red); font-size: 0.82rem; margin-top: 6px; min-height: 1em; }

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 24px;
  font-size: 0.88rem;
}
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--red); }
.auth__link { color: var(--red); font-weight: 600; }

.auth__alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
}
.auth__alert.is-error { display: block; background: rgba(255, 62, 63, 0.1); color: var(--red-dark); }
.auth__alert.is-success { display: block; background: rgba(201, 162, 39, 0.14); color: #6b520f; }

.auth__foot { text-align: center; margin-top: 24px; color: var(--muted); font-size: 0.92rem; }

.btn[data-loading="true"] { pointer-events: none; opacity: 0.75; }

/* ---------- Stepper wizard ---------- */
.steps {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}
.steps__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.steps__item span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  transition: background 0.25s, color 0.25s;
}
.steps__item.is-active { color: var(--ink); border-color: var(--gold); }
.steps__item.is-active span { background: var(--gold); color: #fff; }
.steps__item.is-done { color: var(--ink); border-color: var(--gold-soft); }
.steps__item.is-done span { background: var(--gold-soft); color: #fff; }

.step-hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.step-hint strong { color: var(--ink); }

.otp-input {
  letter-spacing: 0.5em;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.linklike {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.2s;
}
.linklike:hover { color: var(--red); }
.linklike[disabled] { opacity: 0.5; cursor: default; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
}
