/* ------------------------------------------------------------------
   Autmint auth pages. Kept out of platform.css so a page-specific
   change never depends on a cached copy of the shared stylesheet.
   ------------------------------------------------------------------ */

/* ==================================================================
   Auth pages (/login, /register) — static, no WASM runtime
   ================================================================== */

.auth-main {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 72px;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  max-width: 90vw;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid var(--pf-line);
  background: var(--pf-surface);
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.auth-intro {
  font-size: 14px;
  color: var(--pf-muted);
  margin-bottom: 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--pf-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--pf-radius-sm);
  border: 1px solid var(--pf-line);
  background: var(--pf-bg);
  color: var(--pf-text);
  font-family: inherit;
  font-size: 14px;
}

.field input:focus {
  outline: 2px solid var(--pf-teal);
  outline-offset: 2px;
}

.field-hint {
  font-size: 12px;
  color: var(--pf-muted);
  margin-top: 6px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--pf-muted);
  line-height: 1.5;
}

.auth-status.is-bad {
  color: var(--pf-coral);
}

.auth-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--pf-line);
  font-size: 13px;
  color: var(--pf-muted);
  text-align: center;
}

/* ---- show / hide password ----------------------------------------
   The icon swap is driven by aria-pressed, so the button's accessible
   state and its appearance can never disagree. ------------------- */

.field-reveal {
  position: relative;
}

.field-reveal input {
  padding-right: 52px;
}

.reveal-btn {
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pf-muted);
  cursor: pointer;
}

.reveal-btn:hover {
  color: var(--pf-text);
}

.reveal-btn:focus-visible {
  outline: 2px solid var(--pf-teal);
  outline-offset: 2px;
}

.reveal-btn .icon-hide {
  display: none;
}

.reveal-btn[aria-pressed='true'] {
  color: var(--pf-teal);
}

.reveal-btn[aria-pressed='true'] .icon-show {
  display: none;
}

.reveal-btn[aria-pressed='true'] .icon-hide {
  display: block;
}
