/* ============================================
   Forgot & Reset Password Pages
   ============================================ */

.forgot-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.forgot-wrapper {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.forgot-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* Back button */
.forgot-card .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all .2s;
  margin-bottom: 8px;
}
.forgot-card .back-btn:hover {
  background: var(--cream);
  border-color: transparent;
  color: var(--ink);
}
.forgot-card .back-btn svg { width: 12px; height: 12px; }

/* Brand */
.forgot-card .login-brand {
  display: flex;
  justify-content: center;
  margin: 16px 0 4px;
  font-size: 18px;
  font-weight: 600;
}

/* Icon */
.forgot-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 20px;
  color: var(--ink);
}
.forgot-icon svg { width: 34px; height: 34px; }

.forgot-icon.icon-success {
  background: rgba(40,201,64,0.12);
  color: #1a8131;
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Header */
.forgot-card .login-header {
  text-align: center;
  margin-bottom: 24px;
}
.forgot-card .login-header h1 {
  font-size: 24px;
  margin-bottom: 8px;
}
.forgot-card .login-header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.forgot-card .login-header strong {
  color: var(--ink);
  font-weight: 600;
}

/* Info Box (success page) */
.info-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: #fafaf8;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.info-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.info-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Resend */
.resend-section {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.resend-section p { margin-bottom: 6px; }
.resend-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}

/* Password Strength */
.password-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}
.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  transition: background .2s;
}
.strength-bar.weak { background: #ff5f57; }
.strength-bar.medium { background: #ffbd2e; }
.strength-bar.strong { background: #28c940; }
.strength-bar.very-strong { background: #1a8131; }
.strength-label {
  font-size: 11px;
  color: var(--muted);
  min-width: 80px;
  text-align: left;
}

/* Password Rules */
.password-rules {
  list-style: none;
  padding: 12px;
  margin: 0 0 20px;
  background: #fafaf8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.password-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  transition: color .2s;
}
.password-rules .rule-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--line);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.password-rules .rule-icon svg {
  width: 10px;
  height: 10px;
}
.password-rules li.passed {
  color: #1a8131;
}
.password-rules li.passed .rule-icon {
  background: #28c940;
  color: white;
}

/* Toggle password button */
.toggle-password {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.toggle-password:hover {
  background: var(--cream);
  color: var(--ink);
}
.toggle-password svg { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 600px) {
  .forgot-page { padding: 20px 14px; }
  .forgot-card { padding: 24px 18px; }
  .forgot-icon { width: 60px; height: 60px; }
  .forgot-icon svg { width: 28px; height: 28px; }
  .forgot-card .login-header h1 { font-size: 20px; }
  .info-item { padding: 12px; }
}