:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  background-color: #fff7ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #ffe4c4, #ffb347);
  color: #1f2933;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.logo {
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #1f2933;
  font-weight: 500;
}

.nav-links form {
  margin: 0;
}

.link-button {
  background: none;
  border: none;
  color: #1f2933;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}

.cta-link {
  padding: 0.4rem 0.8rem;
  border: 1px solid #1f2933;
  border-radius: 999px;
}

.container {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 520px;
  width: 90%;
  margin: 2rem auto 3rem;
  text-align: center;
}

.page-shell {
  background: none;
  box-shadow: none;
  padding: 0 1rem 3rem;
  width: 100%;
  max-width: none;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.tagline {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.subtext {
  font-size: 1rem;
  color: #445566;
  margin-bottom: 1.5rem;
}

.environment {
  font-size: 0.875rem;
  color: #667788;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  color: #1f2933;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.button.primary {
  background: #1f2933;
  color: #fff;
}

.button.secondary {
  border-color: #1f2933;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

form.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
}

.form-field input {
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #d0d7de;
  font-size: 1rem;
}

.form-submit {
  padding: 0.85rem;
  font-size: 1rem;
  border-radius: 1rem;
  border: none;
  background: #1f2933;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.messages {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  text-align: left;
}

.messages.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.messages.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.messages.info {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.messages.warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-note {
  font-size: 0.9rem;
  color: #475569;
  margin-top: 0.5rem;
}

.welcome-text {
  font-size: 0.9rem;
}

.dashboard-panel {
  text-align: left;
  background: var(--ds-color-surface, rgba(255, 255, 255, 0.92));
  border-radius: var(--ds-radius-lg, 1.5rem);
  padding: 2.25rem;
  box-shadow: var(--ds-shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.15));
}

.history-panel {
  background: rgba(255, 255, 255, 0.98);
}

.status-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inventory-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.inventory-form label {
  font-weight: 600;
}

.inventory-form textarea {
  border-radius: 0.85rem;
  border: 1px solid #d0d7de;
  padding: 0.75rem;
  font-size: 1rem;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: #5f6c80;
}

.loading-banner {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  background: #fff7ed;
  color: #92400e;
  border: 1px dashed #fed7aa;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
}

.loading-banner.is-visible {
  display: flex;
}

.loading-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid #fed7aa;
  border-top-color: #f97316;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.upload-field {
  margin-top: 1rem;
  text-align: left;
}

.upload-field label {
  font-weight: 600;
}

.upload-input {
  margin-top: 0.35rem;
  padding: 0.6rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(31, 41, 51, 0.35);
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
}

.section-subhead {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-top: 1rem;
}

.recipe-card {
  border: 1px solid rgba(31, 41, 51, 0.15);
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
  background: #fffdf8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.recipe-card h3 {
  margin-top: 0;
}

.recipe-ingredients {
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.5rem;
}

.recipe-instructions {
  margin-top: 0.25rem;
}

.status-note.small {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.75rem;
}
