/* =========================================================
   PeacePal — Delete Account page — specific styles
   Import shared.css first, then this file.
   ========================================================= */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  min-height: 100vh;
}

/* ── Card ── */
.card {
  background: #FFFFFF;
  border: 1px solid #5A7A9A;
  border-radius: 20px;
  padding: 40px 32px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.07);
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #5A7A9A;
  margin-bottom: 20px;
}

.back-link:hover {
  color: #2563EB;
  text-decoration: none;
}

/* ── Warning banner ── */
.warning-box {
  background: #FFF3F3;
  border: 1.5px solid #F87171;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.warning-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
}

.warning-box p {
  font-size: 14px;
  line-height: 1.55;
  color: #7F1D1D;
}

/* ── Form fields ── */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1A2333;
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #5A7A9A;
  border-radius: 10px;
  font-size: 15px;
  color: #1A2333;
  background: #F8FAFD;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 16px;
}

.field-input:focus {
  border-color: #2563EB;
  background: #FFFFFF;
}

/* ── Password wrapper ── */
.password-wrap {
  position: relative;
  margin-bottom: 4px;
}

.password-wrap .field-input {
  margin-bottom: 0;
  padding-right: 44px;
}

.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.toggle-pw:hover { opacity: 1; }

/* ── Error message ── */
.error-msg {
  font-size: 13px;
  color: #DC2626;
  min-height: 20px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ── Delete button ── */
.btn-delete {
  width: 100%;
  padding: 13px;
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, opacity 0.15s;
}

.btn-delete:hover:not(:disabled) { background: #B91C1C; }
.btn-delete:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Spinner ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success box ── */
.success-box {
  text-align: center;
  padding: 20px 0 8px;
}

.success-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.success-box p {
  font-size: 15px;
  line-height: 1.55;
  color: #1A2333;
}

@media (max-width: 360px) {
  .card { padding: 28px 20px 28px; }
}
