/* Login and sign-up pages laid out like Stonks' so every dosiancreature.com
   app greets you the same way; each app keeps its own colours. The same
   layout lives in Bomb's and Planner's auth.css - keep the two in step below the
   colour tokens (Stonks' own style.css is the reference). */
/* Colours come from HUGE's own palette (app.css), so the layout matches
   Stonks but HUGE keeps its lime green. */
:root {
  --auth-surface-1: var(--panel);
  --auth-surface-2: var(--bg);
  --auth-text: var(--text);
  --auth-text-secondary: var(--muted);
  --auth-text-muted: var(--muted);
  --auth-border: var(--line);
  --auth-blue: var(--accent);
  --auth-link: var(--accent-text);
  --auth-button-text: var(--accent-ink);
  --auth-bad: var(--danger);
  --auth-danger-bg: rgba(255, 107, 107, 0.12);
  --auth-focus: var(--accent);
}

html:has(.auth-card), body:has(.auth-card) {
  background: var(--auth-surface-2);
  color: var(--auth-text);
}
body:has(.auth-card) {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.auth-card, .auth-card *, .auth-card *::before, .auth-card *::after { box-sizing: border-box; }
.auth-card {
  width: 100%;
  max-width: 380px;
  margin: 60px auto;
  background: var(--auth-surface-1);
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  padding: 32px;
  color: var(--auth-text);
  box-shadow: none;
  text-align: left;
}
@media (max-width: 480px) {
  /* HUGE's page wrapper already gives a 16px gutter, so no side margin here. */
  .auth-card { margin: 24px 0; padding: 24px; }
}
.auth-card h1 {
  font-size: 26px;
  margin: 0 0 20px;
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--auth-text);
}
.auth-card .muted { color: var(--auth-text-muted); }
.auth-card > p { margin: 0 0 15px; }
.auth-card > p.muted { text-align: center; margin-top: 0; }
.auth-card > p.muted:last-child { margin-bottom: 0; }
.auth-card a { color: var(--auth-link, var(--auth-blue)); text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }

.auth-card form {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  box-shadow: none;
}
.auth-card form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--auth-text-secondary);
  margin-bottom: 12px;
}
.auth-card form input {
  width: 100%;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--auth-surface-1);
  color: var(--auth-text);
  box-shadow: none;
  line-height: normal;
  min-height: 0;
  height: auto;
}
.auth-card form input:focus,
.auth-card form input:focus-visible {
  outline: 2px solid var(--auth-focus, var(--auth-text));
  outline-offset: -1px;
  border-color: transparent;
}
.auth-card button[type="submit"] {
  width: 100%;
  margin-top: 4px;
  background: var(--auth-blue);
  color: var(--auth-button-text, #fff);
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: normal;
  min-height: 0;
  height: auto;
  box-shadow: none;
}
.auth-card button[type="submit"]:hover { opacity: 0.9; }
.auth-card button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

.auth-card .auth-error {
  background: var(--auth-danger-bg);
  color: var(--auth-bad);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  margin: 0 0 14px;
}
.auth-card .auth-step { text-align: center; font-size: 13px; margin: -12px 0 16px; }
/* Honeypot field for bots - kept off screen. */
.auth-card .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.auth-card .auth-logo { display: block; margin: -4px auto 10px; }
