/* ==========================================
   FORM ALERT
========================================== */

.form-alert {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.form-alert.show {
  display: flex;
}

.form-alert.success {
  background: #edf8f0;
  border-color: #b8dfc2;
  color: var(--success-color);
}

.form-alert.error {
  background: #fdecec;
  border-color: #f5c2c7;
  color: var(--danger-color);
}

.form-alert.warning {
  background: #fff8e5;
  border-color: #ffe39a;
  color: #8a6200;
}

.form-alert.info {
  background: #eef5ff;
  border-color: #b8d6ff;
  color: var(--info-color);
}

/* ==========================================
   DIVIDER
========================================== */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ==========================================
   OTP
========================================== */

.otp-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.otp-input {
  width: 58px;
  height: 58px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--primary-light);
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  transition: var(--transition);
}

.otp-input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

/* ==========================================
   RESEND
========================================== */

.resend-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.resend-text {
  color: var(--text-light);
  font-size: 0.9rem;
}

.resend-link {
  color: var(--primary-color);
  font-weight: 600;
}

.resend-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================
   TIMER
========================================== */

.countdown {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ==========================================
   SUCCESS CARD
========================================== */

.success-card {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #edf8f0;
  color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.success-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.success-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ==========================================
   INFO CARD
========================================== */

.info-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: #eef5ff;
  color: var(--info-color);
}

/* ==========================================
   LOADER
========================================== */

.loader {
  width: 34px;
  height: 34px;
  margin: auto;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================
   BADGES
========================================== */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #edf8f0;
  color: var(--success-color);
}

.badge-warning {
  background: #fff8e5;
  color: #8a6200;
}

.badge-danger {
  background: #fdecec;
  color: var(--danger-color);
}

/* ==========================================
   STEP INDICATOR
========================================== */

.auth-steps {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.auth-step {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
}

.auth-step.active {
  background: var(--primary-color);
}

/* ==========================================
   AUTH ILLUSTRATION
========================================== */

.auth-illustration {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 2rem auto;
}
