/* ── Auth Pages ─────────────────────────────────────────── */

.auth {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  padding: 3rem 1rem;
}

.auth__card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
}

.auth__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
  text-align: center;
}

.auth__subtitle {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  margin: 0 0 1.5rem;
}

/* Error / Success messages */
.auth__error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.auth__success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Form fields */
.auth__field {
  margin-bottom: 1rem;
}

.auth__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.auth__input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a1a2e;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth__input:focus {
  outline: none;
  border-color: #E8862A;
  box-shadow: 0 0 0 3px rgba(232, 134, 42, 0.15);
}

/* Submit button */
.auth__submit {
  width: 100%;
  padding: 0.75rem;
  background: #E8862A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.auth__submit:hover {
  background: #e5602a;
}

.auth__submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Divider */
.auth__divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth__divider span {
  padding: 0 0.75rem;
}

/* Google button */
.auth__google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.auth__google-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.auth__google-btn svg {
  width: 18px;
  height: 18px;
}

/* Links */
.auth__links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.auth__links a {
  color: #E8862A;
  text-decoration: none;
  font-weight: 500;
}

.auth__links a:hover {
  text-decoration: underline;
}

/* Terms checkbox */
.auth__terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

.auth__terms input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.auth__terms a {
  color: #E8862A;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 480px) {
  .auth__card {
    padding: 1.5rem 1.25rem;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}
