:root {
  --vv-primary: #0f763e;
  --vv-primary-2: #158a4b;
  --vv-accent: #e58e26;
  --vv-bg: #f7f9f6;
  --vv-text: #203328;
  --vv-border: #e2e8f0;
}

body {
  background: radial-gradient(circle at top, #edf7f1, #f7f9f8 60%);
  color: var(--vv-text);
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.recovery-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.recovery-card {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 12px 36px rgba(15, 118, 62, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2.25rem;
}

/* Header */
.recovery-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.recovery-header-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #e8f5ed;
  color: var(--vv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.recovery-header-icon.success-icon {
  background: #dcfce7;
  color: #15803d;
}

.recovery-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--vv-text);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.recovery-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Form Controls */
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control {
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid #dce2ea;
  border-radius: 0.6rem;
  font-size: 0.92rem;
  color: var(--vv-text);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--vv-primary-2);
  box-shadow: 0 0 0 3px rgba(21, 138, 75, 0.14);
  background-color: #fff;
}

/* Password Field with Inside-Field Eye Toggle */
.position-relative .form-control {
  padding-right: 2.85rem !important;
}

.btn-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: #64748b;
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  z-index: 5;
  line-height: 1;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.btn-password-toggle:hover {
  color: var(--vv-primary-2);
  background: rgba(0, 0, 0, 0.04) !important;
}

.btn-password-toggle:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(21, 138, 75, 0.2) !important;
}

/* Info Surfaces */
.recovery-info-box {
  background: #f8faf9;
  border: 1px solid #dce8e0;
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.recovery-info-box .info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  display: block;
}

.recovery-info-box .info-val {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  word-break: break-all;
}

/* OTP Input */
.otp-input-field {
  letter-spacing: 0.3em;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  height: 52px;
}

/* Buttons */
.btn-vv {
  background: var(--vv-primary);
  color: #fff;
  border: 0;
  border-radius: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-vv:hover:not(:disabled) {
  background: var(--vv-primary-2);
  color: #fff;
}

.btn-vv:disabled {
  background: #a3c4b0;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-outline-vv {
  background: transparent;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline-vv:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vv-primary);
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 0.35rem 0;
}

.back-link:hover {
  color: var(--vv-primary-2);
  text-decoration: underline;
}

/* Password Requirements Checklist */
.password-requirements {
  background: #f8faf9;
  border: 1px solid #dce8e0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin: 1.15rem 0;
}

.password-requirements-title {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3b5043;
  margin-bottom: 0.55rem;
}

.password-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.password-rule-grid .req-item {
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
  line-height: 1.35;
}

.password-rule-grid .req-item.text-muted {
  color: #64748b !important;
}

.password-rule-grid .req-item.text-success {
  color: #0f763e !important;
  font-weight: 600;
}

.password-rule-grid .req-icon {
  display: inline-block;
  width: 14px;
  font-weight: bold;
}

@media (max-width: 520px) {
  .recovery-container {
    padding: 1.5rem 0.85rem;
  }
  .recovery-card {
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
  }
  .password-rule-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}
