/* Auth pages — register + login forms.
   Uses design tokens from style.css (:root vars). */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 16px;
  padding: 40px 32px;
}

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

.auth-icon {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}

.auth-header h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--fg);
  margin-bottom: 6px;
}

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

/* Error message */
.auth-error {
  background: rgba(192, 57, 43, 0.12);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  color: var(--red-bright);
  font-size: 0.85rem;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input {
  background: var(--bg);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--fg);
  font-family: var(--sans);
  transition: border-color 0.2s;
  outline: none;
}

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

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

/* Submit button */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
  text-align: center;
  background: linear-gradient(135deg, #c9a84c, #b8860b);
  color: #0a0a0a;
  margin-top: 4px;
}

.auth-btn:hover {
  background: linear-gradient(135deg, #d4b35c, #c9a84c);
  transform: translateY(-1px);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer links */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

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

.auth-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

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

/* Trust badges */
.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--fg-dim);
  font-size: 0.75rem;
}

/* Mobile */
@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }

  .auth-header h1 {
    font-size: 1.4rem;
  }

  .auth-icon {
    font-size: 2rem;
  }
}
