/* ==========================================
   INEZA AFRICAN MINING — Forgot Password Styles
   ========================================== */

:root {
  --orange: #E8531A;
  --orange-light: #FBF0EB;
  --bg: #F5F5F4;
  --card: #fff;
  --border: #E8E6E1;
  --border-hover: #ccc;
  --text: #1A1A18;
  --text2: #6B6B67;
  --text3: #9B9B97;
  --red: #A32D2D;
  --red-bg: #FCEBEB;
  --green: #0F6E56;
  --green-bg: #E1F5EE;
  --amber: #BA7517;
  --amber-bg: #FAEEDA;
  --radius: 6px;
  --radius-lg: 10px;
  font-family: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 13px;
  padding: 20px;
}

.forgot-container {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.forgot-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
}

.forgot-card {
  padding: 40px 30px;
}

/* BRAND */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 24px;
}

.brand-logo-image {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.brand-sub {
  font-size: 10px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 2px;
}

/* STEPPER */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  padding: 0 4px;
}

.step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F2F0ED;
  border: 2px solid #F2F0ED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text3);
  font-size: 12px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.step.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 3px var(--orange-light);
}

.step.completed {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #E8E6E1;
  margin: 0 8px;
  transition: all 0.3s ease;
}

.step-line.active {
  background: var(--orange);
}

/* STEP SECTIONS */
.step-section {
  display: none;
}

.step-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* FORM STYLES */
.form-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* FIELD */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  stroke: var(--text3);
  fill: none;
  stroke-width: 1.8;
  pointer-events: none;
}

.field-wrap input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: #fafaf9;
  outline: none;
  transition: all 0.15s ease;
  font-family: inherit;
}

.field-wrap input:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px var(--orange-light);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  padding: 4px;
  transition: color 0.15s ease;
}

.toggle-password:hover {
  color: var(--text);
}

.toggle-password svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* BUTTON */
.btn-action {
  width: 100%;
  padding: 11px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  font-family: inherit;
}

.btn-action:hover {
  background: #d4430f;
}

.btn-action:disabled {
  background: #f0a382;
  cursor: not-allowed;
}

/* CODE INPUTS (STEP 2) */
.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 16px 0;
}

.code-box {
  width: 48px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  background: #fafaf9;
  outline: none;
  transition: all 0.15s ease;
  color: var(--text);
}

.code-box:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px var(--orange-light);
}

/* TIMER & RESEND LINK */
.timer-container {
  text-align: center;
  font-size: 12.5px;
  color: var(--text2);
  margin: 15px 0 5px;
}

.resend-container {
  text-align: center;
  font-size: 12.5px;
  color: var(--text2);
  margin: 15px 0 5px;
}

.resend-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.resend-link:hover {
  color: #d4430f;
  text-decoration: underline;
}

/* PASSWORD STRENGTH METER */
.strength-meter {
  width: 100%;
  margin-top: 8px;
  padding-left: 2px;
}

.strength-bar {
  height: 4px;
  width: 0%;
  background: var(--border);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-bar.weak {
  background: var(--red);
}

.strength-bar.medium {
  background: var(--amber);
}

.strength-bar.strong {
  background: #BA7517;
}

.strength-bar.very-strong {
  background: var(--green);
}

.strength-text {
  font-size: 11px;
  color: var(--text3);
  margin-top: 5px;
  font-weight: 500;
}

/* NOTIFICATIONS & ALERTS */
.notification-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #E6F1FB;
  color: #185FA5;
  border: 1px solid rgba(24, 95, 165, 0.1);
  margin-bottom: 20px;
  font-size: 12.5px;
  line-height: 1.45;
  animation: slideDown 0.3s ease;
}

.notification-toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.alert-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.4;
}

.alert-msg.error {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(163, 45, 45, 0.1);
}

.alert-msg svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* SUCCESS VIEW */
.success-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 20px;
}

.success-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

/* FOOTER */
.form-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.back-link {
  color: var(--text2);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--orange);
}

.back-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* SPINNER */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
