body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #1c0f2a;
  color: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}
.card {
  background-color: #291e3b;
  border: 1px solid #3f3355;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #6a21be;
  text-align: center;
}
p.subtitle {
  color: #a594b8;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
input,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background-color: #190f2a;
  border: 1px solid #403355;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
}
.journal-textarea {
  box-sizing: border-box;
  resize: none;
  overflow: hidden;
  min-height: 140px;
}
.btn-group {
  display: flex;
  gap: 0.5rem;
}
button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary {
  background-color: #5504b1;
  color: white;
}
.btn-secondary {
  background-color: #433355;
  color: #f8fafc;
}
.btn-primary:hover {
  background-color: #3a03a1;
}
.btn-secondary:hover {
  background-color: #544769;
}
.entry-item {
  background: #180f2a;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #000;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.entry-date {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.25rem;
}
#app-view {
  text-align: center;
}

/* Auth Message Banners */
.auth-message {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.4;
}

.auth-message.error {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.auth-message.success {
  background-color: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #86efac;
}

/* Button States */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
