:root {
  color-scheme: light;
  --cream: #fff7e8;
  --cream-deep: #f5e6c8;
  --ink: #2f221c;
  --muted: #745f53;
  --accent: #c9413a;
  --accent-dark: #963129;
  --line: #e4cda9;
  --success: #276749;
  --warning: #9a5b13;
  --error: #a83232;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 65, 58, 0.12), transparent 34rem),
    linear-gradient(135deg, var(--cream), #fffdf7 56%, var(--cream-deep));
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(100%, 30rem);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid rgba(116, 95, 83, 0.22);
  border-radius: 1.75rem;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 1.5rem 4rem rgba(67, 44, 28, 0.16);
  text-align: center;
}

.brand-mark {
  width: 5.25rem;
  height: 5.25rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #fff3dc;
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.85rem, 8vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0.85rem auto 1.25rem;
  max-width: 24rem;
  color: var(--muted);
  line-height: 1.55;
}

.message {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: #fffaf0;
  text-align: left;
}

.message h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.message-success {
  border-color: rgba(39, 103, 73, 0.3);
  background: #effaf2;
}

.message-error {
  border-color: rgba(168, 50, 50, 0.3);
  background: #fff1ef;
}

.message-warning {
  border-color: rgba(154, 91, 19, 0.3);
  background: #fff7df;
}

.reset-form {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
  text-align: left;
}

.reset-form[hidden] {
  display: none;
}

label {
  font-weight: 700;
  color: var(--ink);
}

input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  color: var(--ink);
  background: #fffefb;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(201, 65, 58, 0.18);
  border-color: var(--accent);
}

button,
.return-link {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

button {
  border: 0;
  color: white;
  background: var(--accent);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.return-link {
  width: 100%;
  margin-top: 0.35rem;
  color: var(--accent-dark);
  border: 1px solid rgba(201, 65, 58, 0.35);
  background: #fff7ee;
}

.form-error {
  margin: 0;
  color: var(--error);
  font-weight: 700;
  line-height: 1.4;
}
