:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #1c1a17;
  background: #fbf7ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
a {
  color: #3f7a8c;
}
h1,
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}
h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 7vw, 54px);
}
h2 {
  margin: 36px 0 8px;
  font-size: 24px;
}
p,
li {
  font-size: 16px;
  line-height: 1.65;
  color: #4a463f;
}
.meta {
  color: #8a847a;
  font-size: 14px;
}
.card {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid #e9ddc6;
  border-radius: 18px;
  background: #fffdf8;
}
.button {
  display: inline-block;
  margin-top: 20px;
  border: 0;
  padding: 13px 22px;
  border-radius: 999px;
  background: #3f7a8c;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}
.button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.eyebrow {
  margin: 0 0 8px;
  color: #3f7a8c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 0;
}
.auth-card {
  width: 100%;
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid #e9ddc6;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 18px 60px rgb(72 51 35 / 10%);
}
.auth-card h1 {
  font-size: clamp(34px, 7vw, 48px);
}
.auth-card form {
  margin-top: 28px;
}
.auth-card label {
  display: block;
  margin: 18px 0 7px;
  color: #4a463f;
  font-size: 14px;
  font-weight: 600;
}
.auth-card input {
  width: 100%;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 12px;
  padding: 13px 14px;
  background: #ffffff;
  color: #1c1a17;
  font: inherit;
}
.auth-card input:focus {
  border-color: #3f7a8c;
  outline: 3px solid rgb(63 122 140 / 18%);
}
/* The live password checklist. Mirrors the chips the app shows under the same
   field; the rules themselves come from src/features/auth/password-policy.ts. */
.rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.rule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border: 1px solid #e9ddc6;
  border-radius: 999px;
  background: #fffdf8;
  color: #8a847a;
  font-size: 12px;
  font-weight: 600;
  transition:
    background-color 200ms,
    border-color 200ms,
    color 200ms;
}
.rule::before {
  content: '\25cb';
}
.rule.met {
  border-color: transparent;
  background: #d6e5ea;
  color: #3f7a8c;
}
.rule.met::before {
  content: '\2713';
}
@media (prefers-reduced-motion: reduce) {
  .rule {
    transition: none;
  }
}
.auth-button {
  width: 100%;
}
.auth-status {
  min-height: 26px;
  margin: 18px 0 0;
  font-weight: 600;
}
.auth-status.success {
  color: #6b8e6a;
}
.auth-status.error {
  color: #e63946;
}
[hidden] {
  display: none !important;
}
