.agro-pilot-login {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.agro-pilot-panel,
.agro-pilot-card {
  border-radius: 28px;
  border: 1px solid rgba(20, 83, 45, 0.08);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.agro-pilot-panel {
  padding: 32px;
  color: #f7fff8;
  background:
    radial-gradient(circle at top left, rgba(187, 247, 208, 0.24), transparent 32%),
    linear-gradient(145deg, #0f5132 0%, #14532d 48%, #1f7a45 100%);
  position: relative;
  overflow: hidden;
}

.agro-pilot-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -18% auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(187, 247, 208, 0.12);
  filter: blur(10px);
}

.agro-pilot-logo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.agro-pilot-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.agro-pilot-checklist {
  display: grid;
  gap: 12px;
}

.agro-pilot-checklist-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.agro-pilot-checklist-item i {
  font-size: 1.15rem;
  color: #dcfce7;
}

.agro-pilot-card {
  background: #ffffff;
  padding: 32px;
}

.agro-pilot-card .form-control {
  min-height: 56px;
  border-radius: 18px;
  border-color: rgba(20, 83, 45, 0.18);
  padding-left: 16px;
  padding-right: 16px;
}

.agro-pilot-card .form-control:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
}

.agro-pilot-submit {
  min-height: 56px;
  border-radius: 18px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(25, 135, 84, 0.22);
}

.agro-pilot-link {
  color: #0f5132;
  font-weight: 600;
  text-decoration: none;
}

.agro-pilot-link:hover {
  color: #198754;
}

.agro-pilot-dashboard {
  display: grid;
  gap: 20px;
}

.agro-pilot-page-header {
  align-items: center;
  gap: 1rem;
}

.agro-pilot-header-actions {
  gap: 0.75rem;
}

.agro-pilot-overview {
  background: linear-gradient(180deg, #fcfefc 0%, #f7fbf8 100%);
}

.agro-pilot-overview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.agro-pilot-overview-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(20, 83, 45, 0.08);
  color: var(--color-text-main);
  font-size: 0.92rem;
  font-weight: 600;
}

.agro-pilot-overview-tag i {
  color: var(--color-primary);
}

.agro-pilot-overview-tag.is-alert {
  background: #fff8e8;
  border-color: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.agro-pilot-overview-tag.is-alert i {
  color: inherit;
}

.agro-pilot-overview-note {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(20, 83, 45, 0.08);
  height: 100%;
}

.agro-pilot-stat {
  background: #ffffff;
}

.agro-pilot-section-card {
  background: #ffffff;
}

.agro-pilot-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.agro-pilot-demand-groups {
  display: grid;
  gap: 1.25rem;
}

.agro-pilot-demand-group {
  display: grid;
  gap: 0.85rem;
}

.agro-pilot-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.agro-pilot-demand-list {
  display: grid;
  gap: 0.85rem;
}

.agro-pilot-demand-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid #edf2f7;
  border-radius: 1rem;
  background: #f8fafc;
}

.agro-pilot-demand-main {
  min-width: 0;
}

.agro-pilot-demand-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.agro-pilot-demand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.83rem;
}

.agro-pilot-demand-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.agro-pilot-demand-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.agro-pilot-demand-action .btn {
  white-space: nowrap;
}

.agro-pilot-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 220px;
  padding: 24px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px dashed rgba(20, 83, 45, 0.18);
}

.agro-pilot-empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 1.8rem;
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
  margin-bottom: 14px;
}

.agro-pilot-profile-list {
  display: grid;
  gap: 0.75rem;
}

.agro-pilot-profile-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.agro-pilot-profile-item span {
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.agro-pilot-profile-item strong {
  color: var(--color-text-main);
  text-align: right;
}

.agro-pilot-help-box {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(20, 83, 45, 0.08);
}

.agro-pilot-help-box p {
  color: inherit;
}

@media (max-width: 991.98px) {
  .agro-pilot-login {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .agro-pilot-panel,
  .agro-pilot-card {
    border-radius: 22px;
  }

  .agro-pilot-demand-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .agro-pilot-demand-action {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .agro-pilot-page-header,
  .agro-pilot-header-actions,
  .agro-pilot-section-head,
  .agro-pilot-group-head {
    flex-direction: column;
    align-items: stretch;
  }

  .agro-pilot-header-actions .btn,
  .agro-pilot-section-head .btn,
  .agro-pilot-demand-action .btn {
    width: 100%;
    justify-content: center;
  }

  .agro-pilot-profile-item {
    flex-direction: column;
  }

  .agro-pilot-profile-item strong {
    text-align: left;
  }
}
