/**
 * Auth pages (signup, login) — minimal centered card layout.
 * Inherits design tokens from theme.css.
 */

.auth-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.logo-mark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--green);
  color: var(--bg);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}
.logo-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.auth-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1.75rem;
}

.auth-error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: #ff8a8a;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.825rem;
  margin-bottom: 1.25rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.form-field input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--fg);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}

.form-field input:focus {
  border-color: var(--green);
}

.form-field input::placeholder {
  color: var(--fg-muted);
  opacity: 0.5;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.925rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  letter-spacing: -0.2px;
  transition: opacity 0.15s;
  margin-top: 0.25rem;
}
.btn-primary:hover { opacity: 0.88; }

.auth-alt {
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 1.5rem;
}
.auth-alt a {
  color: var(--green);
  text-decoration: none;
}
.auth-alt a:hover { text-decoration: underline; }