.login-block {
  min-height: 100vh;
  height: auto;
  padding: 26px;
  position: relative;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(61, 181, 74, 0.16), transparent 28%),
    linear-gradient(135deg, #f8fbf8 0%, #eef5ef 47%, #dfe9e3 100%);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  overflow: auto;
}

.login-shell.container {
  width: min(1504px, calc(100vw - 52px));
  max-width: none;
  height: calc(100vh - 52px);
  min-height: 640px;
  max-height: 950px;
  padding: 0;
  overflow: hidden;
  border-radius: 24px !important;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(11, 38, 26, 0.16);
  animation: loginRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-layout {
  min-height: 100%;
  display: flex;
  flex-wrap: nowrap;
}

.login-sec {
  display: flex;
  flex: 0 0 37.5%;
  max-width: 37.5%;
  min-height: 100%;
  padding: clamp(34px, 6vh, 82px) 68px clamp(26px, 4.8vh, 56px);
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  color: #253a36;
  animation: panelContentRise 820ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}

.brand-lockup img {
  width: clamp(150px, 21vh, 218px);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(30, 112, 58, 0.12));
}

.login-sec h2,
.login-sec h2:after {
  display: none;
}

.login-intro {
  margin: clamp(18px, 3.2vh, 36px) 0 clamp(20px, 3.6vh, 36px);
  text-align: center;
}

.login-intro h1 {
  margin: 0 0 clamp(10px, 1.8vh, 18px);
  font-size: clamp(30px, 3.2vh, 35px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
  color: #263b38;
}

.login-intro h1 span {
  color: #2ca549;
}

.login-intro p {
  max-width: 430px;
  margin: 0 auto;
  color: #63716e;
  font-size: clamp(16px, 1.75vh, 18px);
  line-height: 1.45;
}

.login-form {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.login-form .form-group {
  margin-bottom: clamp(18px, 2.6vh, 28px);
}

.login-form label {
  display: block;
  margin-bottom: 10px;
  color: #0f7041;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.field-control {
  position: relative;
}

.field-control .field-icon,
.field-control .field-action,
.field-control .svg-inline--fa.field-icon,
.field-control .svg-inline--fa.field-action {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 2;
  color: #65736f;
  width: 18px;
  height: 18px;
  font-size: 17px;
  transform: translateY(-50%);
  pointer-events: none;
}

.field-control .field-action,
.field-control .svg-inline--fa.field-action {
  right: 18px;
  left: auto;
  color: #7a8582;
}

.login-form .form-control {
  height: clamp(54px, 6vh, 60px);
  padding: 0 52px;
  border: 1px solid rgba(44, 165, 73, 0.54);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #243733;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(22, 95, 50, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-form .form-control:focus {
  border-color: #20a24d;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(32, 162, 77, 0.14);
}

.login-form .form-control::placeholder {
  color: #9aa3a0;
}

.login-form .form-check {
  padding-left: 0;
}

.btn-login-modern.btn-primary {
  width: 100%;
  height: clamp(54px, 6vh, 60px);
  margin-top: clamp(6px, 1.4vh, 12px);
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #48b63c 0%, #05a956 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 15px 26px rgba(26, 154, 73, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-login-modern.btn-primary:hover,
.btn-login-modern.btn-primary:focus {
  filter: saturate(1.08);
  box-shadow: 0 18px 32px rgba(26, 154, 73, 0.34);
  transform: translateY(-1px);
}

.btn-login-modern .fas {
  margin-right: 10px;
}

.login-sec .copy-text {
  position: static !important;
  width: 100% !important;
  margin-top: clamp(28px, 5.5vh, 62px);
  color: #0f7041;
  font-size: 15px;
  line-height: 1.7;
}

.login-sec .copy-text i {
  color: #14924a;
}

.login-sec .copy-text a {
  color: #66706d !important;
  font-size: 15px !important;
}

.banner-sec {
  position: relative;
  flex: 0 0 62.5%;
  max-width: 62.5%;
  min-height: 100%;
  border-radius: 0 24px 24px 0;
  background:
    linear-gradient(105deg, rgba(255, 232, 133, 0.04) 0%, rgba(4, 60, 26, 0) 34%, rgba(2, 33, 18, 0.04) 100%),
    url("../image/login-agro-ai.jpg") center center / cover no-repeat;
  overflow: hidden;
  animation: bannerBreathe 1400ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}

@keyframes loginRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelContentRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bannerBreathe {
  from {
    filter: saturate(0.92) brightness(0.96);
    transform: scale(1.025);
  }

  to {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  .login-shell.container,
  .login-sec,
  .banner-sec,
  .btn-login-modern.btn-primary {
    animation: none;
    transition: none;
  }
}

.farm-picker-dialog {
  max-width: 640px;
}

.farm-picker-content {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(11, 38, 26, 0.22);
}

.farm-picker-header {
  padding: 22px 26px 0;
  border-bottom: 0;
  background: #ffffff;
}

.farm-picker-header .modal-title {
  color: #213835;
  font-size: 24px;
  font-weight: 800;
}

.farm-picker-header .close {
  width: 38px;
  height: 38px;
  margin: -4px -4px 0 auto;
  border-radius: 50%;
  color: #60706c;
  opacity: 1;
  transition: background 160ms ease, color 160ms ease;
}

.farm-picker-header .close:hover {
  background: rgba(21, 146, 74, 0.1);
  color: #0f7041;
}

.farm-picker-body {
  padding: 20px 26px 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(88, 184, 82, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.farm-select-modal {
  color: #263b38;
}

.farm-select-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.farm-select-icon {
  width: 48px;
  height: 48px;
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #51ba45 0%, #05a956 100%);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(26, 154, 73, 0.24);
}

.farm-select-head h6 {
  margin: 1px 0 5px;
  color: #0f7041;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.farm-select-head p {
  margin: 0;
  color: #66736f;
  font-size: 15px;
  line-height: 1.4;
}

.farm-search {
  position: relative;
  margin-bottom: 16px;
}

.farm-search .fas,
.farm-search .svg-inline--fa {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 2;
  width: 16px;
  height: 16px;
  color: #71817c;
  transform: translateY(-50%);
}

.farm-search input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 46px;
  border: 1px solid rgba(44, 165, 73, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #263b38;
  font-size: 15px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.farm-search input:focus {
  border-color: #20a24d;
  box-shadow: 0 0 0 4px rgba(32, 162, 77, 0.12);
}

.farm-grid {
  display: grid;
  gap: 12px;
  max-height: min(420px, 52vh);
  overflow: auto;
  padding-right: 4px;
  padding-top: 1px;
}

.farm-option {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(44, 165, 73, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #263b38;
  text-align: left;
  box-shadow: 0 12px 24px rgba(22, 95, 50, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.farm-option:hover,
.farm-option:focus,
.farm-option.is-selected {
  border-color: rgba(32, 162, 77, 0.72);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(22, 95, 50, 0.12);
  transform: translateY(-1px);
  outline: 0;
}

.farm-option-mark,
.farm-option-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.farm-option-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(32, 162, 77, 0.1);
  color: #15924a;
}

.farm-option-text {
  min-width: 0;
}

.farm-option-text strong {
  display: block;
  overflow: hidden;
  color: #263b38;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-option-text small {
  display: block;
  margin-top: 3px;
  color: #6d7a76;
  font-size: 13px;
}

.farm-option-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(32, 162, 77, 0.1);
  color: #15924a;
}

.farm-empty-state {
  display: none;
  padding: 18px;
  border: 1px dashed rgba(44, 165, 73, 0.4);
  border-radius: 12px;
  color: #63716e;
  text-align: center;
}

@media (max-width: 991.98px) {
  .login-block {
    padding: 18px;
  }

  .login-shell.container,
  .login-layout,
  .login-sec,
  .banner-sec {
    height: auto;
    min-height: auto;
  }

  .login-layout {
    flex-wrap: wrap;
  }

  .login-sec,
  .banner-sec {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .login-sec {
    padding: 44px 34px 34px;
  }

  .banner-sec {
    min-height: 360px;
    border-radius: 0 0 22px 22px;
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .login-sec {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .brand-lockup img {
    width: 132px;
  }

  .login-intro {
    margin: 16px 0 18px;
  }

  .login-intro h1 {
    margin-bottom: 8px;
    font-size: 30px;
  }

  .login-intro p {
    font-size: 15px;
    line-height: 1.35;
  }

  .login-form .form-group {
    margin-bottom: 16px;
  }

  .login-form .form-control,
  .btn-login-modern.btn-primary {
    height: 52px;
  }

  .login-sec .copy-text {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.45;
  }

  .login-sec .copy-text a {
    font-size: 14px !important;
  }
}

@media (max-width: 767.98px) {
  .login-block {
    padding: 12px;
    align-items: flex-start;
  }

  .login-shell.container {
    border-radius: 18px !important;
  }

  .login-sec {
    min-height: 620px;
    padding: 36px 24px 28px;
  }

  .brand-lockup img {
    width: 156px;
  }

  .login-intro {
    margin: 22px 0 28px;
  }

  .login-intro h1 {
    font-size: 27px;
  }

  .login-intro p {
    font-size: 15px;
  }

  .login-sec .copy-text {
    margin-top: 34px;
  }

  .banner-sec {
    display: none;
  }
}