/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Background & Centering ===== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #fdf2ff, #0f172a);
  color: #0f172a;
}

/* Wrapper to control width */
.center-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

/* ===== Form Card ===== */
.form-card {
  background: linear-gradient(180deg, #ffffff, #f4f6ff);
  border-radius: 20px;
  padding: 22px 20px 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.4);
  animation: floatIn 0.4s ease-out;
}

/* Header inside card */
.form-header {
  text-align: center;
  margin-bottom: 12px;
}

.icon-circle {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #22c55e, #06b6d4, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #f9fafb;
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.6);
}

.form-header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: #111827;
}

.form-header p {
  font-size: 0.85rem;
  color: #6b7280;
}

/* ===== Success Message ===== */
.success-message {
  min-height: 1.1em;
  font-size: 0.85rem;
  margin: 10px 0;
  color: #16a34a;
  font-weight: 500;
}

/* ===== Form Fields ===== */
.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.required {
  color: #ef4444;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.05s ease, background 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28);
  background: #f0f9ff;
  transform: translateY(-1px);
}

/* Error state */
input.error,
textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  background: #fef2f2;
}

.error-message {
  margin-top: 3px;
  font-size: 0.78rem;
  color: #b91c1c;
  min-height: 1em;
}

/* ===== Buttons ===== */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.65rem 1.3rem;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease,
    opacity 0.1s ease;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  color: #f9fafb;
  box-shadow: 0 16px 32px rgba(56, 189, 248, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.75);
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* ===== Animation ===== */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .form-card {
    padding: 18px 14px 16px;
  }
}
