/* Login and sign-up pages, styled to match Stonks so every dosiancreature.com
   app greets you the same way. The same file lives in Bomb - keep the two
   copies in step (Stonks' own style.css is the reference). */
:root {
  --auth-surface-1: #fcfcfb;
  --auth-surface-2: #f2f1ee;
  --auth-text: #0b0b0b;
  --auth-text-secondary: #52514e;
  --auth-text-muted: #898781;
  --auth-border: rgba(11, 11, 11, 0.10);
  --auth-blue: #2a78d6;
  --auth-bad: #d03b3b;
  --auth-danger-bg: #fbeceb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --auth-surface-1: #1a1a19;
    --auth-surface-2: #0d0d0d;
    --auth-text: #ffffff;
    --auth-text-secondary: #c3c2b7;
    --auth-border: rgba(255, 255, 255, 0.10);
    --auth-blue: #3987e5;
    --auth-bad: #e66767;
    --auth-danger-bg: #3a1f1e;
  }
}
:root[data-theme="dark"] {
  --auth-surface-1: #1a1a19;
  --auth-surface-2: #0d0d0d;
  --auth-text: #ffffff;
  --auth-text-secondary: #c3c2b7;
  --auth-border: rgba(255, 255, 255, 0.10);
  --auth-blue: #3987e5;
  --auth-bad: #e66767;
  --auth-danger-bg: #3a1f1e;
}

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) {
  .auth-card { margin: 24px 16px; 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-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-text);
  outline-offset: -1px;
  border-color: transparent;
}
.auth-card button[type="submit"] {
  width: 100%;
  margin-top: 4px;
  background: var(--auth-blue);
  color: #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-note {
  background: rgba(12, 163, 12, 0.12);
  color: var(--auth-text-secondary);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  margin: 0 0 14px;
}

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

/* The yin yang under the form: back to dosiancreature.com (same as the top bar's). */
.auth-home { text-align: center; margin: 10px 0 0; }
.auth-home a { display: inline-flex; padding: 6px; border-radius: 50%; }
.auth-home img { display: block; width: 36px; height: 36px; transition: transform .5s ease; }
.auth-home a:hover img, .auth-home a:focus-visible img { transform: rotate(180deg); }
