/* Forgot password — commercial-style flow */
.fp-flow {
  width: 100%;
}

.fp-header {
  margin-bottom: 20px;
}

.fp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--accent, #4f8cff);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}

.fp-back-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.fp-header h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fp-header .fp-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #8892a4);
  line-height: 1.5;
}

.fp-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 0 4px;
}

.fp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted, #8892a4);
  white-space: nowrap;
}

.fp-step::before {
  content: attr(data-step);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--panel-border, #2a3142);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.fp-step.active {
  color: var(--text, #e8eaef);
  font-weight: 500;
}

.fp-step.active::before {
  border-color: var(--accent, #4f8cff);
  background: var(--accent, #4f8cff);
  color: #fff;
}

.fp-step.done {
  color: var(--accent, #4f8cff);
}

.fp-step.done::before {
  border-color: var(--accent, #4f8cff);
  background: transparent;
  color: var(--accent, #4f8cff);
  content: "✓";
  font-size: 12px;
}

.fp-step-line {
  flex: 1;
  height: 2px;
  background: var(--panel-border, #2a3142);
  margin: 0 12px;
  min-width: 24px;
}

.fp-pane {
  display: none;
  animation: fpFadeIn 0.25s ease;
}

.fp-pane.active {
  display: block;
}

@keyframes fpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fp-field {
  margin-bottom: 16px;
}

.fp-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #8892a4);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fp-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--panel-border, #2a3142);
  border-radius: 10px;
  background: var(--input-bg, rgba(255, 255, 255, 0.04));
  color: var(--text, #e8eaef);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fp-field input:focus {
  outline: none;
  border-color: var(--accent, #4f8cff);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15);
}

.fp-code-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.fp-code-row .fp-field {
  flex: 1;
  margin-bottom: 0;
}

.fp-send-code {
  flex-shrink: 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--accent, #4f8cff);
  background: transparent;
  color: var(--accent, #4f8cff);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 16px;
}

.fp-send-code:hover:not(:disabled) {
  background: rgba(79, 140, 255, 0.12);
}

.fp-send-code:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fp-hint {
  font-size: 12px;
  color: var(--success, #3ecf8e);
  margin: -8px 0 16px;
  min-height: 18px;
  line-height: 1.4;
}

.fp-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent, #4f8cff), #7c5cff);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(79, 140, 255, 0.3);
}

.fp-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 140, 255, 0.4);
}

.fp-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.fp-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 13px;
  line-height: 1.4;
}

.fp-error.hidden {
  display: none;
}

.auth-forgot-link {
  display: block;
  text-align: right;
  margin-top: -4px;
  margin-bottom: 12px;
  font-size: 13px;
}

.auth-forgot-link button {
  border: none;
  background: none;
  color: var(--accent, #4f8cff);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.auth-forgot-link button:hover {
  text-decoration: underline;
}

.auth-panel-forgot.hidden,
.auth-panel-login.hidden {
  display: none;
}

.admin-auth .fp-field input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.admin-auth .fp-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-auth .fp-back-link {
  color: #2563eb;
}

.admin-auth .fp-step.active::before {
  background: #2563eb;
  border-color: #2563eb;
}

.admin-auth .fp-step.done {
  color: #2563eb;
}

.admin-auth .fp-step.done::before {
  border-color: #2563eb;
  color: #2563eb;
}

.admin-auth .fp-send-code {
  border-color: #2563eb;
  color: #2563eb;
}

.admin-auth .fp-submit {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.admin-auth .fp-header h3 {
  color: #0f172a;
}

.admin-auth .fp-sub {
  color: #64748b;
}

.admin-auth .fp-step {
  color: #64748b;
}

.admin-auth .fp-step.active {
  color: #0f172a;
}

.admin-auth .fp-step-line {
  background: #e2e8f0;
}

.admin-auth .fp-hint {
  color: #16a34a;
}
