body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f8f7;
  color: #172026;
}

* {
  box-sizing: border-box;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hidden {
  display: none !important;
}

.website-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 520px);
  background:
    radial-gradient(circle at 5% 95%, rgba(55, 137, 77, 0.18), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(143, 189, 70, 0.18), transparent 28%),
    #f5f8f7;
}

.login-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(18, 55, 37, 0.9), rgba(35, 116, 67, 0.86)),
    url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.login-visual::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, 0.08);
}

.visual-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  margin-bottom: 12px;
  color: #c8f2d4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.visual-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
}

.visual-copy p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 46px;
  background: #ffffff;
}

.login-title-block {
  position: relative;
  margin-bottom: 32px;
  text-align: left;
}

.login-title-block h2 {
  margin-bottom: 8px;
  color: #2d704b;
  font-size: 38px;
}

.login-title-block p {
  color: #b1b8b1;
  font-weight: 700;
}

.leaf-sprig {
  position: absolute;
  right: 12px;
  top: 0;
  width: 54px;
  height: 44px;
}

.leaf-sprig::before,
.leaf-sprig::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 18px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #8fbd46, #2f7c3d);
}

.leaf-sprig::before {
  right: 14px;
  top: 0;
  transform: rotate(-48deg);
}

.leaf-sprig::after {
  right: 0;
  bottom: 5px;
  transform: rotate(20deg);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-row > div {
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: #050705;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(23, 32, 38, 0.16);
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #2f968b;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

h1,
h2,
p {
  margin-top: 0;
}

.brand-row h1 {
  margin-bottom: 4px;
  font-size: 24px;
}

.brand-row strong,
.brand-row small {
  display: block;
}

.brand-row p,
.brand-row small,
.dashboard-content p {
  color: #66727d;
}

.login-visual > .brand-row {
  position: relative;
  z-index: 1;
}

.login-visual .brand-row strong {
  color: #ffffff;
}

.login-visual .brand-row small {
  color: rgba(255, 255, 255, 0.76);
}

.sidebar .brand-row {
  margin-bottom: 34px;
}

.sidebar strong {
  display: block;
  color: #172026;
  font-size: 20px;
}

.sidebar small {
  display: block;
  margin-top: 4px;
  color: #66727d;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-tabs {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.admin-tabs button {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: #52635a;
  text-align: left;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-tabs button:hover,
.admin-tabs button.active {
  background: #e2efe5;
  color: #2f714a;
  transform: translateX(2px);
}

.admin-panel-section {
  animation: fadeUp 0.28s ease both;
}

.dashboard-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background:
    radial-gradient(circle at 90% 8%, rgba(143, 189, 70, 0.16), transparent 25%),
    radial-gradient(circle at 5% 95%, rgba(55, 137, 77, 0.14), transparent 26%),
    #f5f8f7;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 30px;
  border-right: 1px solid rgba(221, 231, 234, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 247, 0.94)),
    radial-gradient(circle at 20% 10%, rgba(47, 150, 139, 0.16), transparent 34%);
  box-shadow: 18px 0 48px rgba(23, 32, 38, 0.05);
}

.dashboard-content {
  width: min(100%, 1500px);
  padding: 30px;
  animation: fadeUp 0.45s ease both;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 14px;
  pointer-events: none;
}

.profile-menu-wrap {
  position: relative;
  pointer-events: auto;
}

.profile-button {
  width: 54px;
  height: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 14px 34px rgba(23, 32, 38, 0.16);
}

.profile-button:hover {
  box-shadow: 0 18px 42px rgba(23, 32, 38, 0.2);
}

.profile-photo,
.profile-menu-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-initials {
  display: none;
}

.profile-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(86vw, 310px);
  padding: 16px;
  border: 1px solid rgba(221, 231, 234, 0.92);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 38, 0.18);
  animation: softScale 0.16s ease both;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 14px;
}

.profile-menu-photo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: #e2efe5;
}

.profile-card-head div {
  min-width: 0;
}

.profile-card-head strong,
.profile-card-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-head strong {
  color: #172026;
  font-size: 17px;
}

.profile-card-head small {
  margin-top: 4px;
  color: #66727d;
  font-size: 13px;
  font-weight: 800;
}

.profile-role {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e2efe5;
  padding: 0 12px;
  color: #2f714a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-logout {
  width: 100%;
  min-height: 44px;
}

.dashboard-content h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(18, 55, 37, 0.92), rgba(35, 116, 67, 0.86)),
    url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #ffffff;
  box-shadow: 0 24px 58px rgba(21, 52, 34, 0.18);
  animation: fadeUp 0.4s ease both;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 52px solid rgba(255, 255, 255, 0.08);
}

.dashboard-hero h2,
.dashboard-hero p {
  position: relative;
  z-index: 1;
}

.dashboard-hero h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(32px, 4.6vw, 52px);
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.55;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h3 {
  margin: 0;
  font-size: 24px;
}

.form-toolbar {
  justify-content: flex-start;
}

.location-button {
  order: -1;
  min-width: 170px;
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mode-toggle button {
  min-height: 54px;
  border: 1px solid #cfe1d4;
  border-radius: 16px;
  background: #ffffff;
  color: #2f714a;
  box-shadow: 0 10px 26px rgba(23, 32, 38, 0.06);
}

.mode-toggle button.active {
  border-color: #3d8954;
  background: #3d8954;
  color: #ffffff;
}

.flow-card,
.form-card {
  border: 1px solid rgba(221, 231, 234, 0.86);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 38, 0.07);
  animation: fadeUp 0.42s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.form-card:hover,
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(23, 32, 38, 0.1);
}

.flow-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 18px 20px;
  color: #2f714a;
}

.flow-card strong {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 22px;
  background: #e2efe5;
  padding: 0 14px;
}

.flow-card span {
  color: #9aa8a0;
  font-weight: 900;
}

.form-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(18px, 2.5vw, 26px);
}

.form-card::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -60px;
  z-index: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(61, 137, 84, 0.08);
  pointer-events: none;
}

.section-heading,
.detail-grid,
.detail-map,
.empty-state,
.table-wrap,
.filters-grid,
.compact-form,
.admin-grid {
  position: relative;
  z-index: 1;
}

.farmer-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  align-items: start;
}

.farmer-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 0;
  color: #24372a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.farmer-form input,
.farmer-form select,
.farmer-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d9e8dc;
  border-radius: 14px;
  margin-bottom: 0;
  background: #f9fcfa;
  color: #172026;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.farmer-form input[readonly] {
  background: #eef6f1;
  color: #557063;
  cursor: default;
}

.farmer-form input:focus,
.farmer-form select:focus,
.farmer-form textarea:focus {
  outline: none;
  border-color: #3d8954;
  box-shadow: 0 0 0 4px rgba(61, 137, 84, 0.12);
}

.farmer-form textarea {
  min-height: 104px;
  line-height: 1.45;
  padding: 13px 14px;
  padding-top: 12px;
  resize: vertical;
}

.wide-field {
  grid-column: 1 / -1;
}

.map-preview {
  overflow: hidden;
  border: 1px solid #d9e8dc;
  border-radius: 18px;
  background: #f9fcfa;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #d9e8dc;
}

.map-header strong {
  color: #24372a;
}

.map-header a {
  color: #2f714a;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.map-preview iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.detail-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e8dc;
  border-radius: 16px;
  background: #f9fcfa;
  cursor: default;
  user-select: none;
}

.detail-item span {
  display: block;
  margin-bottom: 6px;
  color: #66727d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: #172026;
  line-height: 1.35;
}

.detail-map {
  margin-top: 12px;
}

.map-header .row-actions {
  align-items: center;
}

.map-header .row-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 12px;
  background: #e2efe5;
  padding: 0 12px;
  color: #2f714a;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  background: #3d8954;
}

.secondary-button {
  background: #e2efe5;
  color: #2f714a;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(221, 231, 234, 0.86);
  border-top: 5px solid #3d8954;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 38, 0.07);
  animation: fadeUp 0.42s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card span {
  display: block;
  margin-bottom: 14px;
  color: #66727d;
  font-size: 13px;
  font-weight: 900;
}

.stat-card strong {
  color: #172026;
  font-size: 32px;
  line-height: 1;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.insight-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(221, 231, 234, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 249, 0.96)),
    radial-gradient(circle at 95% 0, rgba(143, 189, 70, 0.18), transparent 30%);
  box-shadow: 0 14px 38px rgba(23, 32, 38, 0.07);
  animation: fadeUp 0.42s ease both;
}

.progress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.insight-label {
  display: block;
  margin-bottom: 10px;
  color: #66727d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.insight-card > div > strong,
.insight-heading strong {
  display: block;
  color: #172026;
  font-size: 24px;
  line-height: 1.2;
}

.insight-card small,
.insight-note {
  display: block;
  margin-top: 8px;
  color: #66727d;
  font-size: 13px;
  font-weight: 800;
}

.insight-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.donut {
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 53%, transparent 54%),
    conic-gradient(#3d8954 var(--progress), #dfeee4 0);
  box-shadow: inset 0 0 0 1px rgba(47, 113, 74, 0.1);
}

.donut span {
  color: #2f714a;
  font-size: 22px;
  font-weight: 900;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(100px, 1.4fr) 42px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.progress-row div:first-child strong {
  display: block;
  color: #24372a;
  font-size: 14px;
}

.progress-row div:first-child span {
  display: block;
  margin-top: 2px;
  color: #66727d;
  font-size: 12px;
  font-weight: 800;
}

.progress-track,
.mini-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e2efe5;
}

.progress-track span,
.mini-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d8954, #8fbd46);
}

.progress-row b {
  color: #2f714a;
  font-size: 13px;
  text-align: right;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(90px, 1.6fr) 34px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.mini-row span {
  overflow: hidden;
  color: #24372a;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-row strong {
  color: #2f714a;
  font-size: 14px;
  text-align: right;
}

.reminder-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 16px;
  border-radius: 999px;
  background: #fff5cf;
  padding: 0 12px;
  color: #7b5700;
  font-size: 13px;
  font-weight: 900;
}

.empty-mini {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px dashed #d9e8dc;
  border-radius: 14px;
  color: #66727d;
  font-size: 13px;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

.filters-grid,
.compact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.compact-form {
  margin-bottom: 0;
}

.compact-form label,
.filters-grid label {
  display: grid;
  gap: 8px;
  margin-top: 0;
  color: #24372a;
  font-size: 13px;
  font-weight: 900;
}

.compact-form input,
.compact-form select,
.filters-grid input,
.filters-grid select {
  margin: 0;
  border-color: #d9e8dc;
  background: #f9fcfa;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5eee8;
  border-radius: 16px;
  background: #ffffff;
}

.records-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.query-table {
  min-width: 920px;
}

.records-table th,
.records-table td {
  padding: 12px;
  border-bottom: 1px solid #e5eee8;
  text-align: left;
  vertical-align: middle;
}

.records-table th {
  background: #f5faf7;
  color: #66727d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.records-table tbody tr {
  transition: background 0.16s ease;
}

.records-table tbody tr:hover {
  background: #f9fcfa;
}

.records-table td small {
  display: block;
  margin-top: 4px;
  color: #66727d;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf4ef;
  color: #2f714a;
  font-size: 12px;
  font-weight: 900;
}

.badge.pending {
  background: #fff5cf;
  color: #7b5700;
}

.badge.completed {
  background: #dff4e7;
  color: #256c3c;
}

.status-select {
  width: auto;
  min-width: 124px;
  min-height: 34px;
  margin: 0;
  padding: 0 28px 0 12px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.status-select.pending {
  background: #fff5cf;
  color: #7b5700;
}

.status-select.completed {
  background: #dff4e7;
  color: #256c3c;
}

.table-button,
.danger-button {
  min-height: 36px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
}

.table-button {
  background: #e2efe5;
  color: #2f714a;
}

.danger-button {
  background: #fff1f1;
  color: #b53333;
}

.reminder-list,
.technician-list {
  display: grid;
  gap: 12px;
}

.reminder-item,
.technician-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d9e8dc;
  border-radius: 14px;
  background: #f9fcfa;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.reminder-item:hover,
.technician-item:hover {
  transform: translateY(-1px);
  border-color: #bcd6c4;
  background: #ffffff;
}

.reminder-item small,
.technician-item small {
  display: block;
  margin-top: 4px;
  color: #66727d;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #cfded4;
  border-radius: 16px;
  color: #66727d;
  text-align: center;
}

.sidebar .secondary-button {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cfe1d4;
  color: #2d704b;
}

.message {
  min-height: 20px;
  color: #c2412d;
  font-weight: 700;
}

.input-shell {
  width: 100%;
  min-height: 56px;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  background: #e2efe5;
  color: #2f714a;
  padding: 0 14px;
  font-weight: 800;
}

.input-shell input {
  min-height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #275c3d;
}

.input-shell input::placeholder {
  color: #6f8f7c;
  font-weight: 800;
}

.input-shell input:focus {
  outline: none;
}

.eye-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #60846d;
}

.login-options {
  width: 100%;
  margin: -2px 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 900;
}

.remember-option {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b0bcb2;
}

.remember-option input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: #2f7c4f;
}

.forgot-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #397751;
  font-size: 12px;
}

.login-panel .message {
  margin: -28px 0 18px;
  text-align: left;
}

.login-panel #loginButton {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  border-radius: 28px;
  background: #3d8954;
  font-size: 16px;
}

.setup-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.setup-card {
  width: min(100%, 560px);
  padding: 28px;
  border: 1px solid #dde7ea;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(23, 32, 38, 0.08);
}

.setup-card h1 {
  margin: 0 0 10px;
}

.setup-card p {
  color: #66727d;
}

.setup-brand {
  margin-bottom: 22px;
}

button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #2f968b;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

input,
select {
  width: 100%;
  min-height: 46px;
  margin: 8px 0 16px;
  padding: 0 14px;
  border: 1px solid #dde7ea;
  border-radius: 12px;
  font: inherit;
}

label {
  display: block;
  margin-top: 14px;
  color: #172026;
  font-weight: 800;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

pre {
  min-height: 48px;
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: #f5f8f7;
  white-space: pre-wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 29, 19, 0.58);
  animation: softScale 0.18s ease both;
}

.modal-box {
  width: min(100%, 390px);
  padding: 30px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(12, 29, 19, 0.26);
  text-align: center;
  animation: fadeUp 0.24s ease both;
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2efe5;
  color: #2f714a;
  font-size: 34px;
  font-weight: 900;
}

.modal-box h2 {
  margin-bottom: 8px;
  color: #2d704b;
  font-size: 28px;
}

.modal-box p {
  color: #66727d;
}

.modal-box button {
  width: 100%;
  margin-top: 10px;
  border-radius: 24px;
  background: #3d8954;
}

@media (max-width: 1180px) {
  .farmer-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .website-login {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 340px;
    padding: 28px;
  }

  .visual-copy h1 {
    font-size: 34px;
  }

  .login-panel {
    min-height: auto;
    padding: 34px 24px;
  }

  .farmer-form {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .flow-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-toggle {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    padding: 22px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(221, 231, 234, 0.86);
  }

  .sidebar .brand-row {
    padding-right: 70px;
  }

  .dashboard-content {
    width: 100%;
    padding: 18px;
  }

  .dashboard-topbar {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 80;
    margin: 0;
  }

  .dashboard-hero,
  .form-card {
    border-radius: 18px;
    padding: 22px;
  }
}

@media (max-width: 520px) {
  body {
    background: #f5f8f7;
  }

  .dashboard-content {
    padding: 12px;
  }

  .profile-button {
    width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .dashboard-topbar {
    top: 18px;
    right: 14px;
  }

  .form-card,
  .dashboard-hero {
    border-radius: 16px;
    padding: 16px;
  }

  .dashboard-hero h2 {
    font-size: 30px;
  }

  .dashboard-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    min-height: 92px;
    padding: 16px;
  }

  .insight-card {
    min-height: auto;
    padding: 16px;
  }

  .donut {
    width: 96px;
    height: 96px;
  }

  .progress-row,
  .mini-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .progress-row b,
  .mini-row strong {
    text-align: left;
  }

  .farmer-form {
    gap: 14px;
  }

  .farmer-form input,
  .farmer-form select,
  .farmer-form textarea {
    min-height: 50px;
    font-size: 14px;
  }

  .map-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-preview iframe {
    height: 220px;
  }

  .reminder-item,
  .technician-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
