/* ============================================================================
   auth.css — the pages you meet before you are anybody.
   Log in, forgotten password, set a new password.

   The same design system as the dashboard, at the one size these pages need:
   a card in the middle of an obsidian page, with the brand above it.
   ========================================================================= */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5) var(--s4);
  position: relative;
  overflow: hidden;
}

/* One very soft champagne wash behind the card. It is the only decoration on
   these pages, it is the accent colour, and it is nearly invisible — which is
   the point: a login page should look expensive and say nothing. */
.auth::before {
  content: "";
  position: absolute;
  top: -320px; left: 50%;
  width: 760px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--gold-dim) 0%, transparent 68%);
  pointer-events: none;
}

.auth-wrap { width: 100%; max-width: 400px; position: relative; z-index: 1; }

.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: var(--s3);
  margin-bottom: var(--s6);
}
.auth-brand-mark {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 21px; line-height: 1;
  padding-bottom: 3px;
}
.auth-brand-name { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.01em; }

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--s6) var(--s5) var(--s5);
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.auth-sub {
  font-size: var(--t-small);
  color: var(--text-2);
  margin-top: var(--s2);
  margin-bottom: var(--s5);
  line-height: 1.6;
}

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3);
  margin: var(--s4) 0 var(--s5);
  flex-wrap: wrap;
}

.auth-msg {
  display: none;
  font-size: var(--t-small);
  line-height: 1.55;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-sm);
  margin-top: var(--s4);
  border: 1px solid transparent;
  border-left-width: 2px;
}
.auth-msg.show { display: block; }
.auth-msg.err { background: var(--rose-dim); color: var(--rose); border-left-color: var(--rose); }
.auth-msg.ok  { background: var(--emerald-dim); color: var(--emerald); border-left-color: var(--emerald); }
.auth-msg.info { background: var(--panel-2); color: var(--text-2); border-left-color: var(--slate); }

.auth-foot {
  text-align: center;
  font-size: var(--t-micro);
  color: var(--text-3);
  margin-top: var(--s5);
  line-height: 1.6;
}

/* How strong the new password is. Three segments, filled as it gets longer —
   advice, never a gate: the server's rule is eight characters and this must
   not look like a fourth one. */
.pw-strength { display: flex; gap: 4px; margin-top: var(--s2); }
.pw-seg {
  height: 3px; flex: 1;
  border-radius: var(--r-pill);
  background: var(--panel-3);
  transition: background var(--normal) var(--ease);
}
.pw-seg.on-weak   { background: var(--rose); }
.pw-seg.on-ok     { background: var(--amber); }
.pw-seg.on-strong { background: var(--emerald); }
.pw-note { font-size: var(--t-micro); color: var(--text-3); margin-top: 6px; }

/* The page the reset link lands on when the token is already dead. */
.auth-dead { text-align: center; }
.auth-dead svg { width: 24px; height: 24px; color: var(--amber); margin: 0 auto var(--s3); }

@media (max-width: 480px) {
  .auth-card { padding: var(--s5) var(--s4) var(--s4); }
  .auth-title { font-size: 22px; }
}
