/* ===========================================================================
   auth.css — sign in and registration.

   Uses the editor's tokens so the account screens and the application are
   plainly the same product. Screen-only; no certificate rule is touched.
   =========================================================================== */

html { background: var(--surface); }

body.auth {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--s6);
  background:
    radial-gradient(1100px 520px at 50% -12%, var(--accent-soft), transparent 60%),
    var(--surface);
  color: var(--text);
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
}

.auth-card {
  width: 100%;
  max-width: 396px;
  background: var(--surface-lowest);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-3);
  overflow: hidden;
}

.auth-head {
  padding: var(--s6) var(--s6) var(--s4);
  border-bottom: 1px solid var(--line-soft);
}
.auth-eyebrow {
  margin: 0 0 var(--s2);
  font-family: var(--ui-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--ui-font);
}
.auth-head h1 { margin: 0; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.01em; }
.auth-head p  { margin: 6px 0 0; font-size: var(--fs-md); color: var(--text-dim); line-height: 1.55; }

.auth-body { padding: var(--s5) var(--s6) var(--s6); }

.auth-field { margin-bottom: var(--s4); }
.auth-field label {
  display: block;
  margin-bottom: var(--s1);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-strong);
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: var(--ctl-py) var(--ctl-px);
  background: var(--surface-lowest);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-lg);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.auth-input::placeholder { color: var(--text-faint); }
.auth-input:hover { border-color: var(--line-hi); }
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.auth-input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

.auth-error {
  margin: var(--s1) 0 0;
  font-size: var(--fs-sm);
  color: var(--danger-hi);
  line-height: 1.45;
}

.auth-hint { margin: 6px 0 0; font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.5; }

.auth-submit {
  width: 100%;
  margin-top: var(--s2);
  padding: var(--btn-py) var(--btn-px);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-xs);
  color: var(--on-accent);
  font: inherit;
  font-size: var(--fs-lg);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}
.auth-submit:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: none; box-shadow: var(--ring); }

.auth-alt {
  margin: var(--s5) 0 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: var(--fs-md);
  color: var(--text-dim);
}
.auth-alt a { color: var(--accent); text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; text-underline-offset: 2px; }

.auth-notice {
  margin: 0 0 var(--s4);
  padding: var(--s3) var(--ctl-px);
  background: var(--ok-soft);
  border: 1px solid var(--ok-line);
  border-radius: var(--r-xs);
  font-size: var(--fs-md);
  color: var(--ok);
}

.auth-foot {
  margin: var(--s5) 0 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
