:root {
  --agco-forest: #006837;
  --agco-green: #00a651;
  --agco-deep: #0b2f1a;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  background: #f4f7f4;
}

.login-hero {
  position: relative;
  flex: 1.15;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 47, 26, 0.55) 0%, rgba(0, 104, 55, 0.72) 48%, rgba(11, 47, 26, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 47, 26, 0.35), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 52px 56px;
  max-width: 620px;
}

.hero-logo {
  width: 210px;
  max-width: 70%;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
}

.hero-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: #c8f0d6;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
}

.hero-tagline {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 28px;
  max-width: 460px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: #d7efe2;
}

.login-panel {
  width: min(480px, 42vw);
  min-width: 380px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 44px;
  box-shadow: -18px 0 40px rgba(11, 47, 26, 0.08);
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.panel-logo {
  display: none;
  width: 168px;
  margin: 0 auto 18px;
  background: #0b2f1a;
  border-radius: 10px;
  padding: 8px 12px;
}

.login-title {
  font-weight: 800;
  font-size: 26px;
  color: var(--agco-deep);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.login-subtitle {
  color: #5b6b61;
  font-size: 14px;
  margin-bottom: 28px;
}

.login-card .form-label {
  font-weight: 600;
  color: #334155;
  font-size: 13px;
  margin-bottom: 6px;
}

.login-card .input-group-text {
  background: #f3f8f4;
  border: 1.5px solid #d7e5db;
  color: var(--agco-forest);
  border-right: none;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.premium-input {
  border: 1.5px solid #d7e5db;
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  font-size: 14px;
  background: #f8fbf8;
}

.premium-input:focus {
  border-color: var(--agco-green);
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.14);
  background: #fff;
}

.premium-select {
  border: 1.5px solid #d7e5db;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: #f8fbf8;
  width: 100%;
}

.premium-select:focus {
  border-color: var(--agco-green);
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.14);
  background: #fff;
  outline: none;
}

.password-toggle {
  background: #f3f8f4;
  border: 1.5px solid #d7e5db;
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #5b6b61;
  cursor: pointer;
}

.btn-premium {
  width: 100%;
  padding: 14px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--agco-forest), var(--agco-green));
  box-shadow: 0 8px 20px rgba(0, 104, 55, 0.28);
}

.btn-premium:hover { color: #fff; }

.btn-premium .spinner-border {
  width: 18px;
  height: 18px;
  display: none;
}

.btn-premium.loading .spinner-border { display: inline-block; }
.btn-premium.loading .btn-text { margin-left: 8px; }

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
}

.login-card .form-check-input:checked {
  background-color: var(--agco-green);
  border-color: var(--agco-green);
}

.forgot-link {
  color: var(--agco-forest);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.switch-login {
  display: none !important;
}

.tick-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e6efe8;
}

.tick {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b5d53;
  font-size: 12.5px;
  font-weight: 500;
}

.tick svg { color: var(--agco-green); }

.login-card .text-danger { font-size: 12.5px; }

@media (max-width: 992px) {
  .login-shell { flex-direction: column; }
  .login-hero { min-height: 240px; flex: none; }
  .hero-content { padding: 28px 24px; justify-content: flex-end; }
  .hero-title { font-size: 24px; }
  .hero-tagline, .hero-meta { display: none; }
  .login-panel {
    width: 100%;
    min-width: 0;
    padding: 32px 22px 40px;
    box-shadow: none;
  }
  .panel-logo { display: block; }
}
