/* ============================================================
   auth.css — CetakID Login / Register / Forgot Password
   Stack: Bootstrap 5 + Poppins + Inter
   Palette: #ffcd36 (kuning), #111111 (hitam), #f7f6f2 (abu bg)
   ============================================================ */

/* ── PAGE WRAPPER ── */
.auth-page {
  min-height: 100vh;
  background: #f0eeea;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* ── CARD ── */
.auth-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
}

.auth-card-wide {
  max-width: 560px;
}

/* ── HEADER ── */
.auth-header {
  background: #111111;
  padding: 28px 32px 24px;
}

.auth-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .1em;
}

.auth-logo-text span {
  color: #ffcd36;
}

.auth-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.auth-title span {
  color: #ffcd36;
}

.auth-subtitle {
  font-size: 13px;
  color: #888;
  font-family: 'Inter', sans-serif;
}

/* ── BODY ── */
.auth-body {
  padding: 28px 32px;
}

/* ── TYPE TABS (Login B2C / B2B) ── */
.auth-tabs {
  display: flex;
  border: 1.5px solid #e8e6e0;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  background: #f7f6f2;
  cursor: pointer;
  border: none;
  border-right: 1.5px solid #e8e6e0;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
}

.auth-tab:last-child { border-right: none; }

.auth-tab.active {
  background: #111111;
  color: #ffcd36;
}

/* ── FORM ── */
.auth-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #111;
  margin-bottom: 5px;
  display: block;
}

.auth-label .req { color: #ef4444; }

.auth-input {
  width: 100%;
  border: 1.5px solid #e8e6e0;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.auth-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,.06);
}

.auth-input.is-invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.auth-hint {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

.auth-error-msg {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

/* ── PASSWORD WRAP ── */
.pass-wrap {
  position: relative;
}

.pass-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
  font-size: 15px;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.pass-toggle:hover { color: #555; }

/* ── PASSWORD STRENGTH ── */
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: #e8e6e0;
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width .3s, background .3s;
}

.strength-fill.weak   { width: 33%; background: #ef4444; }
.strength-fill.medium { width: 66%; background: #f97316; }
.strength-fill.strong { width: 100%; background: #b8860b; }

.strength-label {
  font-size: 11px;
  color: #aaa;
  font-family: 'Inter', sans-serif;
}
.strength-label.weak   { color: #ef4444; }
.strength-label.medium { color: #f97316; }
.strength-label.strong { color: #b8860b; }

/* ── BUTTONS ── */
.btn-auth-primary {
  width: 100%;
  background: #111111;
  color: #ffcd36;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background .15s;
  display: block;
  text-align: center;
  text-decoration: none;
}

.btn-auth-primary:hover { background: #222; color: #ffcd36; }

.btn-auth-secondary {
  width: 100%;
  background: #ffcd36;
  color: #111111;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background .15s;
  display: block;
  text-align: center;
  text-decoration: none;
}

.btn-auth-secondary:hover { background: #f5c400; color: #111; }

.btn-google-auth {
  width: 100%;
  background: #fff;
  color: #111;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px;
  border-radius: 7px;
  border: 1.5px solid #e8e6e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: border-color .15s;
}

.btn-google-auth:hover { border-color: #999; }

/* ── DIVIDER ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: #e8e6e0;
}

.auth-divider-text {
  font-size: 11px;
  color: #aaa;
  font-family: 'Inter', sans-serif;
}

/* ── SWITCH LINK ── */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #888;
  font-family: 'Inter', sans-serif;
}

.auth-switch a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
}

/* ── ALERT ── */
.auth-alert {
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 18px;
  line-height: 1.5;
}

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert-success {
  background: #fff9e6;
  border: 1px solid #fde68a;
  color: #b8860b;
}

.auth-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.auth-alert-warn {
  background: #fefce8;
  border: 1px solid #fde047;
  color: #92400e;
}

/* ── B2B BADGE ── */
.b2b-info-box {
  background: rgba(59,130,246,.05);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.b2b-info-box .bi-icon { font-size: 20px; flex-shrink: 0; }

.b2b-info-text {
  font-size: 12px;
  color: #1d4ed8;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.b2b-info-text strong { display: block; margin-bottom: 2px; font-size: 13px; }

/* ── REMEMBER / FORGOT ROW ── */
.auth-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #666;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.auth-remember input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: #111;
  cursor: pointer;
}

.auth-forgot {
  font-size: 13px;
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  font-family: 'Inter', sans-serif;
}

/* ── LOCKOUT NOTICE ── */
.lockout-badge {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 12px;
  color: #c2410c;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FORGOT SUCCESS ── */
.forgot-success {
  text-align: center;
  padding: 12px 0;
}

.forgot-success .icon { font-size: 52px; margin-bottom: 12px; }
.forgot-success h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}
.forgot-success p {
  font-size: 13px;
  color: #666;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── STEP INDICATOR (Forgot) ── */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 5px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.auth-step.active .step-num  { background: #ffcd36; color: #111; }
.auth-step.done   .step-num  { background: #111; color: #ffcd36; }
.auth-step.wait   .step-num  { background: #e8e6e0; color: #aaa; }
.auth-step.active .step-label, .auth-step.done .step-label { color: #111; }
.auth-step.wait   .step-label { color: #aaa; }

.step-line {
  width: 32px;
  height: 1.5px;
  margin: 0 4px;
}

.step-line.done { background: #111; }
.step-line.wait { background: #e8e6e0; }

/* ── NAVBAR AUTH ── */
.auth-nav {
  background: #fff;
  border-bottom: 1px solid #e8e6e0;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-nav-back {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}

.auth-nav-back:hover { color: #111; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .auth-body, .auth-header { padding: 20px; }
  .auth-title { font-size: 20px; }
  .auth-card  { border-radius: 10px; }
  .auth-main  { padding: 20px 12px; }
}
