/* Auth pages — login + signup share this stylesheet. Uses the same
   colour vars as styles.css so the visual language is consistent
   with the app once the user lands inside. */

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 32px 26px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.auth-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
}
.auth-brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--text);
}
.auth-brand-tag {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-faint);
}

.auth-card h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.auth-lead {
  margin: 0 0 22px 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
}

.auth-card form label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}
.auth-card form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}
.auth-card form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}

.auth-primary {
  width: 100%;
  padding: 11px 14px;
  margin-top: 8px;
  background: var(--accent);
  color: #0b0f17;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.auth-primary:hover:not(:disabled) { filter: brightness(1.08); }
.auth-primary:active:not(:disabled) { transform: translateY(1px); }
.auth-primary:disabled {
  opacity: 0.65;
  cursor: progress;
}

.auth-error {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
}
.auth-foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-foot a:hover { text-decoration: underline; }
