/* AxonGPT auth pages — aligned with Open WebUI dark sign-in (black / gray-900 shell) */
:root {
  color-scheme: dark;
  --auth-bg: #000000;
  --auth-surface: #171717;
  --auth-border: rgba(255, 255, 255, 0.1);
  --auth-text: #fafafa;
  --auth-muted: #a3a3a3;
  --auth-input-bg: #262626;
  --auth-input-border: #404040;
  --auth-input-focus: #525252;
  --auth-btn-bg: #ffffff;
  --auth-btn-fg: #000000;
  --auth-btn-hover: #e5e5e5;
  --auth-link: #d4d4d4;
  --auth-link-hover: #ffffff;
  --auth-err: #f87171;
  --auth-ok: #4ade80;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.auth-page {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--auth-bg);
  color: var(--auth-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  line-height: 1.5;
}

.auth-card {
  width: 100%;
  max-width: 26rem;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--auth-text);
}

.auth-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.auth-lead {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--auth-muted);
  text-align: center;
}

.auth-form label {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--auth-muted);
}

.auth-form label:first-of-type {
  margin-top: 0;
}

.auth-form input {
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--auth-text);
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input::placeholder {
  color: #737373;
}

.auth-form input:focus {
  border-color: var(--auth-input-focus);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.auth-form button[type="submit"] {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--auth-btn-fg);
  background: var(--auth-btn-bg);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s;
}

.auth-form button[type="submit"]:hover:not(:disabled) {
  background: var(--auth-btn-hover);
}

.auth-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#msg {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
  white-space: pre-wrap;
}

#msg.err {
  color: var(--auth-err);
}

#msg.ok {
  color: var(--auth-ok);
}

.auth-footer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--auth-muted);
}

.auth-footer a {
  color: var(--auth-link);
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--auth-link-hover);
  text-decoration: underline;
}

.auth-footer .sep {
  margin: 0 0.35rem;
  color: #525252;
}

.auth-sent-view {
  text-align: center;
}

.auth-sent-lead {
  margin-bottom: 1rem;
}

.auth-sent-email {
  color: var(--auth-text);
  word-break: break-all;
}

.auth-sent-hint {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--auth-muted);
  line-height: 1.55;
}

.auth-sent-expiry {
  font-size: 0.8125rem;
  color: #737373;
  margin-bottom: 0;
}
