:root {
  --maroon: #7a1522;
  --maroon-dark: #5c0f19;
  --gold: #c79a4b;
  --bg: #faf7f2;
  --text: #2b2320;
  --muted: #7a6f67;
  --error: #b3261e;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px calc(40px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

.brand {
  text-align: center;
  margin-bottom: 24px;
}

.brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.brand h1 {
  font-size: 1.4rem;
  margin: 14px 0 6px;
  color: var(--maroon-dark);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--maroon-dark);
}

.field input {
  font-size: 1rem;
  font-weight: 400;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid #ddd3c8;
  background: #fff;
  color: var(--text);
  min-height: 48px;
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 154, 75, 0.25);
}

.field input.invalid {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.78rem;
  font-weight: 500;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

button#btn-submit {
  background: var(--maroon);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 52px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

button#btn-submit:active {
  transform: scale(0.98);
}

button#btn-submit:disabled {
  background: #b98a93;
  cursor: not-allowed;
}

.feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  text-align: center;
  display: none;
}

.feedback.show { display: block; }

.feedback.success {
  background: #e3f3e6;
  color: #1e5e2b;
  border: 1px solid #b7ddbb;
}

.feedback.error {
  background: #fbe9e7;
  color: var(--error);
  border: 1px solid #f3c6c2;
}

@media (min-width: 520px) {
  .wrap { padding-top: 48px; }
}
