body.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(42, 83, 56, 0.07);
}

.card--center { text-align: center; }

.brand {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-text);
  text-align: center;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-text);
  text-align: center;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--brand-muted);
  text-align: center;
  margin-bottom: 1.75rem;
}

.field { margin-bottom: 1rem; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #d1dbc5;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--brand-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(73, 145, 118, 0.14);
}

/* form.as_p field wrappers */
form p { margin-bottom: 1rem; }
form p label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--brand-text); margin-bottom: 0.35rem; letter-spacing: 0.01em; }
form p input,
form p select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #d1dbc5;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--brand-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
form p input:focus,
form p select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(73, 145, 118, 0.14);
}

.field-error {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 500;
  margin-top: 0.3rem;
}

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: #b91c1c;
  margin-bottom: 1.1rem;
}

.error-box ul { padding-left: 1rem; margin: 0; }

.invalid-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #b91c1c;
  text-align: center;
  line-height: 1.5;
}

.invalid-box a { color: #b91c1c; font-weight: 600; }

.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #bedfcb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card--center p {
  font-size: 0.9rem;
  color: var(--brand-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.btn-submit {
  width: 100%;
  padding: 0.65rem;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}

.btn-submit:hover { background: var(--brand-primary-dark); }

.btn-primary {
  display: block;
  padding: 0.65rem;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--brand-primary-dark); }

.form-footer {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.1rem;
}

.form-footer a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.form-footer a:hover { text-decoration: underline; }
