/* ================================
   Base
================================ */
body {
  margin: 0;
  background: #f7f7f8;
  color: #0f172a;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* center content vertically + horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ================================
   Layout / Header
================================ */
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

/* Site title */
.header .site-title {
  display: inline-block;
  width: 300px;
  height: 57px;
  line-height: 57px;
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  margin: 0 auto 4px;
}

/* Page heading */
.header h2 {
  margin: 18px 0 4px;
  font-size: 2rem;
}

/* ================================
   Form
================================ */
form { margin-top: 12px; }
form p { margin: 14px 0; }

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  text-align: left;
  padding-left: 4px;
}

/* Inputs */
form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  display: block;
}


form input:focus {
  outline: none;
  border-color: #9aa3af;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .25);
}

/* Django field error list (rendered by {{ form.field.errors }}) */
.errorlist {
  margin: 6px 0 0;
  list-style: none;
  padding-left: 0;
  color: #b91c1c;
}

/* ================================
   Button
================================ */
button {
  width: 100%;
  max-width: 520px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #111827; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: not-allowed; }

/* ================================
   Responsive
================================ */
@media (max-width: 420px) {
  .header .site-title { font-size: clamp(24px, 6vw, 34px); }
  .header h2 { font-size: 1.75rem; }
  form p { margin: 12px 0; }
}
