.cruda-auth-card {
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.cruda-auth-card h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

.cruda-auth-form {
  display: grid;
  gap: 1rem;
}

.cruda-auth-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: #111827;
}

.cruda-auth-form input,
.cruda-auth-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
}

.cruda-auth-form button,
.cruda-profile-actions .button,
.cruda-favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
}

.cruda-auth-alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.cruda-auth-alert.error {
  background: #fef2f2;
  color: #991b1b;
}

.cruda-auth-alert.success {
  background: #ecfdf5;
  color: #065f46;
}

.cruda-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.cruda-profile-grid .label {
  display: block;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.cruda-profile-actions {
  margin-top: 1.25rem;
}

.cruda-favorite-button.is-favorite {
  background: #dc2626;
}

.cruda-favorites-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.cruda-favorites-list a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.must-log-in {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 12px;
}


.post-read h4 {
    color: #9ca3af !important;
    font-weight: 600;
    opacity: 0.8;
}

.category-filter.active {
    font-weight: 700;
    text-decoration: underline;
    color: #FF2400;
}