:root {
  --ink: #1a1a1a;
  --muted: #5c5854;
  --line: #e6ddd4;
  --accent: #ed4b97;
  --accent-dark: #2f2f8c;
  --paper: #f7f4f0;
  --surface: #fff;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 38px;
  box-shadow: 0 24px 70px rgba(47, 47, 140, 0.08);
}

.auth-brand {
  color: var(--accent-dark);
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 22px 0 6px;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.auth-intro {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.auth-message {
  margin-bottom: 18px;
  border-radius: 10px;
  padding: 11px 12px;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.auth-error {
  border: 1px solid #efc7c3;
  background: #fff0ef;
  color: #9d302a;
}

.auth-notice {
  border: 1px solid #d4d0ea;
  background: #f3f2fb;
  color: var(--accent-dark);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  border: 1px solid #d8cfc6;
  border-radius: 10px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(237, 75, 151, 0.12);
}

.auth-form button,
.home-actions a.button {
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  padding: 13px 16px;
  color: #fff;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.auth-form button:hover,
.home-actions a.button:hover {
  background: var(--accent-dark);
}

.auth-secondary-actions,
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.auth-secondary-actions a,
.auth-text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent-dark);
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.auth-secondary-actions a:hover,
.auth-text-button:hover {
  text-decoration: underline;
}

.auth-secondary-actions form,
.home-actions form {
  margin: 0;
}

.home-card {
  width: min(100%, 560px);
}

@media (max-width: 520px) {
  .auth-shell { padding: 14px; }
  .auth-card { border-radius: 17px; padding: 28px 22px; }
  h1 { font-size: 31px; }
}
