/* ══════════════════════════════════════════════
   NabungDuit — auth.css
   Shared: login, daftar, verifikasi, verify-email
   ══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #080c14;
  color: #e8edf5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.card {
  width: 100%;
  max-width: 460px;
  background: #111827;
  border: 1px solid rgba(0,191,165,0.2);
  border-radius: 18px;
  padding: 36px 32px;
}
.card--narrow  { max-width: 420px; }
.card--error   { max-width: 400px; padding: 40px 32px; text-align: center; border-color: rgba(248,113,113,0.3); }

.logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.logo a { font-size: 22px; font-weight: 800; color: #00bfa5; text-decoration: none; }
.lang-btn { background: transparent; border: 1px solid rgba(0,191,165,0.4); color: #00bfa5; border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.lang-btn:hover { background: rgba(0,191,165,0.1); }
.icon { text-align: center; font-size: 48px; margin-bottom: 16px; }

h1 { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 6px; }
h2 { margin-bottom: 12px; }
p  { color: #9ca3af; font-size: 14px; }
a  { color: #00bfa5; }

.sub { font-size: 13px; color: #6b7a99; text-align: center; margin-bottom: 28px; line-height: 1.6; }
.sub strong { color: #00bfa5; }

/* Form fields */
.fg { margin-bottom: 16px; }
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
input[type=text],
input[type=email],
input[type=password],
input[type=tel] {
  width: 100%;
  background: #0d1220;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 12px 14px;
  color: #e8edf5;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s;
  outline: none;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=tel]:focus { border-color: #00bfa5; }

.forgot { display: block; text-align: right; font-size: 12px; color: #6b7a99; text-decoration: none; margin-top: 6px; }
.forgot:hover { color: #00bfa5; }

/* Buttons */
.btn {
  width: 100%;
  height: 48px;
  background: #00bfa5;
  color: #080c14;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s;
}
.btn:hover { background: #00a896; }
.btn-ghost {
  background: transparent;
  border: 1px solid #1f2937;
  color: #6b7a99;
  margin-top: 10px;
}
.btn-ghost:hover { border-color: #6b7a99; color: #e8edf5; background: transparent; }

/* Alerts */
.error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.error a { color: #f87171; }
.success {
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  color: #34d399;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Nav links */
.register-link,
.login-link { text-align: center; margin-top: 20px; font-size: 13px; color: #6b7a99; }
.register-link a,
.login-link a { color: #00bfa5; text-decoration: none; font-weight: 600; }
.divider { height: 1px; background: #1f2937; margin: 20px 0; }

/* Plan selector (daftar.php) */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-opt { position: relative; }
.plan-opt input[type=radio] { position: absolute; opacity: 0; width: 0; }
.plan-opt label {
  display: block;
  padding: 14px 16px;
  border: 1px solid #1f2937;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
}
.plan-opt label strong { display: block; font-size: 15px; font-weight: 700; color: #e8edf5; margin-bottom: 2px; }
.plan-opt label .price { font-size: 12px; color: #00bfa5; }
.plan-opt input:checked + label { border-color: #00bfa5; background: rgba(0,191,165,0.07); color: #e8edf5; }

/* OTP digit inputs (verifikasi.php) */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.otp-inputs input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: #0d1220;
  border: 1px solid #1f2937;
  border-radius: 10px;
  color: #e8edf5;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  padding: 0;
}
.otp-inputs input:focus { border-color: #00bfa5; }

/* Step indicator (verifikasi.php) */
.steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.step  { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7a99; }
.step.active { color: #00bfa5; font-weight: 600; }
.step.done   { color: #34d399; }
.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1f2937;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.step.active .step-num { background: #00bfa5; color: #080c14; }
.step.done   .step-num { background: #34d399; color: #080c14; }
.sep { color: #1f2937; }
