/* Auth pages (login, registration) - Tokyo Night Theme */
.auth {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--bg-main);
}

.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: .9rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.auth-card h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  color: var(--text-bright);
}

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

.auth-form label {
  color: var(--text);
  font-weight: 500;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: .6rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  outline: none;
  font-size: 1rem;
}

.auth-form input::placeholder {
  color: var(--text-muted);
}

.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.auth-form .btn {
  width: 100%;
  font-size: 1rem;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
}

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

.auth-errors {
  background: rgba(247, 118, 142, 0.15);
  border: 1px solid rgba(247, 118, 142, 0.3);
  color: var(--danger);
  padding: .75rem 1rem;
  border-radius: .6rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}

.auth-errors p {
  margin: 0;
}

.auth-errors p + p {
  margin-top: .25rem;
}

/* Sits outside .auth-form, so it needs its own spacing rather than the
   form's flex gap. */
.auth-disclaimer {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 1rem 0 0;
}

.auth-disclaimer a {
  color: var(--primary);
  text-decoration: none;
}

.auth-disclaimer a:hover {
  text-decoration: underline;
}

/* Google sign-in */
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem .9rem;
  border-radius: .6rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-bright);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.auth-google-btn:hover {
  border-color: var(--primary);
}

.auth-google-btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.auth-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: .85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
