/* views/auth/forgot-password.php */
:root { font-family: 'Plus Jakarta Sans', sans-serif; }
* { box-sizing: border-box; }

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #1f618d 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}

.reset-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  width: 100%; max-width: 440px;
  overflow: hidden;
}

/* Header */
.rc-head {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  padding: 32px 28px 26px;
  text-align: center;
  color: #fff;
}
.rc-head-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 28px;
}
.rc-head h5 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.rc-head p  { font-size: 13px; opacity: .8; margin: 0; line-height: 1.5; }

/* Step progress dots */
.rc-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 18px 28px 0;
}
.rc-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: #e8edf2; color: #aaa;
  transition: all .3s;
  position: relative; z-index: 1;
}
.rc-step-dot.active  { background: #2563eb; color: #fff; }
.rc-step-dot.done    { background: #10b981; color: #fff; }
.rc-step-line {
  flex: 1; height: 2px;
  background: #e8edf2;
  transition: background .3s;
}
.rc-step-line.done { background: #10b981; }

/* Body */
.rc-body { padding: 24px 28px 28px; }

/* Step panels */
.step { display: none; }
.step.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* Form elements */
.rc-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  color: #555; margin-bottom: 6px; display: block;
}
.rc-input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1.5px solid #dde3ea; border-radius: 10px;
  font-size: 14px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.rc-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.rc-input-wrap {
  position: relative; margin-bottom: 16px;
}
.rc-input-wrap i {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: #aaa; font-size: 15px; pointer-events: none;
}

/* OTP field */
.otp-input {
  width: 100%; padding: 14px;
  border: 1.5px solid #dde3ea; border-radius: 10px;
  font-size: 26px; font-weight: 800;
  text-align: center; letter-spacing: 12px;
  font-family: 'Fira Code', monospace, sans-serif;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.otp-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* Phone badge shown in step 2 */
.phone-badge {
  background: #eaf4fd; border: 1px solid #aed6f1;
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: #2563eb; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}

/* Buttons */
.rc-btn {
  width: 100%; padding: 12px;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: all .2s; display: flex;
  align-items: center; justify-content: center; gap: 8px;
}
.rc-btn-primary { background: #2563eb; color: #fff; }
.rc-btn-primary:hover { background: #3b82f6; }
.rc-btn-primary:disabled { opacity: .65; cursor: not-allowed; }
.rc-btn-success { background: #10b981; color: #fff; }
.rc-btn-success:hover { background: #10b981; }
.rc-btn-success:disabled { opacity: .65; cursor: not-allowed; }
.rc-btn-ghost {
  background: none; color: #888;
  font-size: 13px; padding: 8px;
  margin-top: 6px;
}
.rc-btn-ghost:hover { color: #2563eb; }

/* Error / success inline messages */
.rc-msg {
  border-radius: 8px; padding: 10px 13px;
  font-size: 13px; font-weight: 500; margin-bottom: 14px;
  display: none; align-items: center; gap: 8px;
}
.rc-msg.error   { background: #fdecea; color: #ef4444; }
.rc-msg.success { background: #eafaf1; color: #10b981; }
.rc-msg.show    { display: flex; }

/* Password strength meter */
.pwd-strength { height: 4px; border-radius: 2px; margin-top: 6px; transition: all .3s; background: #e0e0e0; }
.pwd-hint { font-size: 11px; color: #999; margin-top: 4px; }

/* Back link */
.rc-back { text-align: center; margin-top: 20px; }
.rc-back a { font-size: 13px; color: #3b82f6; text-decoration: none; }
.rc-back a:hover { text-decoration: underline; }

/* Spinner */
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
