/* Tailwind-style custom CSS for the dairy frontend pages */
:root {
  color-scheme: dark;
  color: #e2e8f0;
  background-color: #020617;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.16), transparent 24%),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: #e2e8f0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
}

.site-header {
  padding: 1rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
}

.site-brand span {
  color: #22c55e;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  background: rgba(34, 197, 94, 0.16);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-card,
.form-card,
.feature-card,
.panel {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  border-radius: 2rem;
}

.hero-grid,
.features-grid,
.login-grid,
.about-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.hero-card {
  padding: 3rem;
}

.hero-card h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-card p {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: #cbd5e1;
  line-height: 1.75;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  padding: 1rem 1.75rem;
  background: linear-gradient(120deg, #22c55e, #2563eb);
  color: #fff;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(34, 197, 94, 0.28);
}

.btn-secondary {
  padding: 0.95rem 1.6rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.24);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.input-field {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  padding: 1rem 1.15rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field::placeholder {
  color: #94a3b8;
}

.input-field:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.form-card {
  padding: 2rem;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #f8fafc;
}

.field-group {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.field-group label {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 600;
}

.small-note,
.footer-note {
  color: #94a3b8;
  font-size: 0.95rem;
}

.alert-panel {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #d1fae5;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  padding: 2rem;
}

.feature-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #94a3b8;
  line-height: 1.75;
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-panel {
  padding: 2.5rem;
}

.about-panel h2 {
  margin-bottom: 1rem;
}

.hero-graph {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  min-height: 360px;
}

.hero-graph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.24), transparent 28%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 26%);
}

.hero-graph .hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
}

.footer {
  padding: 2rem 0 3rem;
  text-align: center;
  color: #94a3b8;
}

.footer p {
  margin: 0.35rem 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
