/* auth.css — signup + login pages */

.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 170, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(100, 50, 255, 0.05) 0%, transparent 60%);
  padding: 40px 16px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.auth-logo-mark {
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.auth-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--fg);
}

.auth-header p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 68, 85, 0.08);
  border: 1px solid rgba(255, 68, 85, 0.25);
  border-radius: var(--radius-sm);
  color: #ff7788;
  font-size: 0.9rem;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-hint {
  font-weight: 400;
  color: var(--fg-dim);
}

.form-field input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-field input::placeholder {
  color: var(--fg-dim);
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0f;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
  margin-top: 4px;
}

.auth-btn:hover { opacity: 0.9; }
.auth-btn:active { transform: scale(0.99); }

.auth-footer-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-align: center;
  line-height: 1.5;
}

.auth-switch {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

@media (max-width: 480px) {
  .auth-card { padding: 24px 16px; }
  .form-field input { min-height: 48px; font-size: 16px !important; }
  .auth-btn { min-height: 48px; }
}
