
/* BagulinAgriTech — Elegant sign-in experience */
:root {
  --ag-deep: #0a4b40;
  --ag-deeper: #073d35;
  --ag-green: #0f7d6d;
  --ag-accent: #17a48e;
  --ag-lime: #b8cf58;
  --ag-ink: #173c35;
  --ag-muted: #718680;
  --ag-line: #dbe7e3;
  --ag-soft: #f4f8f6;
  --ag-paper: #fbfcfb;
}
* {
  box-sizing: border-box;
}
html,body {
  min-height: 100%;
  margin: 0;
}
body.ag-login {
  min-height: 100vh;
  background: #eef3f1;
  color: var(--ag-ink);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x: hidden;
}
.ag-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(510px,56%) minmax(430px,44%);
}
.ag-login-brand {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px clamp(38px,5vw,78px) 34px;
  color: #fff;
  background: radial-gradient(circle at 86% 18%,rgba(110,190,156,.18),transparent 27%),
    linear-gradient(150deg,#0b5748 0%,#08493f 47%,#063e37 100%);
  isolation: isolate;
}
.ag-login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom,rgba(0,0,0,.25),transparent 78%);
}
.ag-brand-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ag-brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}
.ag-brand-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 8px 24px rgba(0,0,0,.08);
}
.ag-brand-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(0,0,0,.12));
}
.ag-brand-lockup strong,.ag-brand-lockup small {
  display: block;
}
.ag-brand-lockup strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.02em;
}
.ag-brand-lockup small {
  margin-top: 4px;
  color: #b9d8d0;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .02em;
}
.ag-system-tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: #cce1db;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ag-hero {
  position: relative;
  z-index: 4;
  width: min(680px,94%);
  margin: auto 0;
  padding: 68px 0 42px;
}
.ag-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #c7ddd6;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.ag-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: var(--ag-lime);
}
.ag-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px,5.1vw,76px);
  line-height: .98;
  font-weight: 790;
  letter-spacing: -.058em;
  text-wrap: balance;
}
.ag-hero p {
  max-width: 590px;
  margin: 22px 0 0;
  color: #d1e5df;
  font-size: 13px;
  line-height: 1.75;
  font-weight: 450;
}
.ag-capabilities {
  width: min(650px,100%);
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(4px);
}
.ag-capabilities>div {
  position: relative;
  min-width: 0;
  padding: 14px 16px 13px 31px;
  border-right: 1px solid rgba(255,255,255,.10);
}
.ag-capabilities>div:last-child {
  border-right: 0;
}
.ag-cap-dot {
  position: absolute;
  left: 15px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ag-lime);
  box-shadow: 0 0 0 4px rgba(184,207,88,.09);
}
.ag-capabilities strong,.ag-capabilities small {
  display: block;
}
.ag-capabilities strong {
  color: #f5fbf9;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 800;
}
.ag-capabilities small {
  margin-top: 4px;
  color: #a8cbc1;
  font-size: 8.5px;
  line-height: 1.2;
}
.ag-brand-bottom {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #91bdb2;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .02em;
}
.ag-field-lines {
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -5%;
  bottom: -38%;
  height: 68%;
  opacity: .52;
  transform: rotate(-5deg);
  background: repeating-radial-gradient(ellipse at 66% 115%,
      transparent 0 52px,
      rgba(255,255,255,.035) 53px 55px,
      transparent 56px 103px);
}
.ag-orbit {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.045);
}
.ag-orbit-one {
  width: 540px;
  height: 540px;
  right: -250px;
  top: 19%;
}
.ag-orbit-two {
  width: 330px;
  height: 330px;
  right: -98px;
  top: 32%;
  border-color: rgba(184,207,88,.065);
}
.ag-login-access {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px clamp(32px,5vw,76px);
  background: radial-gradient(circle at 50% 46%,#fff 0,#fbfcfb 38%,#f3f7f5 100%);
}
.ag-access-wrap {
  width: min(470px,100%);
}
.ag-access-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 4px 14px;
}
.ag-access-meta small {
  color: #8b9a96;
  font-size: 8.5px;
  font-weight: 750;
  text-align: right;
}
.ag-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #53746c;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.ag-secure-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36b68f;
  box-shadow: 0 0 0 4px #e1f5ee;
}
.ag-login-card {
  position: relative;
  width: 100%;
  padding: 34px 34px 30px;
  border: 1px solid #d9e5e1;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 60px rgba(20,62,55,.09);
  backdrop-filter: blur(10px);
}
.ag-login-card::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 0;
  width: 48px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg,var(--ag-accent),var(--ag-lime));
}
.ag-card-head {
  margin-bottom: 24px;
}
.ag-card-kicker {
  display: block;
  margin-bottom: 7px;
  color: #0c7d6b;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ag-card-head h2 {
  margin: 0;
  color: #153d36;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 790;
  letter-spacing: -.04em;
}
.ag-card-head p {
  max-width: 370px;
  margin: 9px 0 0;
  color: #748882;
  font-size: 10.5px;
  line-height: 1.58;
}
.ag-login-error {
  margin: 0 0 16px!important;
  padding: 11px 12px!important;
  border-radius: 10px!important;
  font-size: 9.5px!important;
}
.ag-login-error strong,.ag-login-error span,.ag-login-error small {
  display: block;
}
.ag-login-error span {
  margin-top: 3px;
}
.ag-login-error small {
  margin-top: 5px;
  opacity: .8;
}
.ag-field {
  margin-bottom: 14px;
}
.ag-field label {
  display: block;
  margin: 0 0 7px;
  color: #284d45;
  font-size: 9.5px;
  font-weight: 850;
}
.ag-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ag-label-row>span {
  margin-bottom: 7px;
  color: #96a39f;
  font-size: 8px;
  font-weight: 650;
}
.ag-input {
  position: relative;
  display: flex;
  align-items: center;
}
.ag-input input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 56px 0 43px;
  border: 1px solid #ccddd8;
  border-radius: 11px;
  background: #fcfdfd;
  color: #163f37;
  font: 650 11px/1 inherit;
  outline: none;
  transition: border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.ag-input input::placeholder {
  color: #9aa9a5;
  font-weight: 520;
}
.ag-input input:hover {
  border-color: #b8cec8;
  background: #fff;
}
.ag-input input:focus {
  border-color: #3f9e8f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31,151,132,.09);
}
.ag-input-icon {
  position: absolute;
  z-index: 2;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #6f8d85;
  pointer-events: none;
}
.ag-input-icon svg,.ag-security-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ag-password-toggle {
  position: absolute;
  right: 7px;
  min-width: 46px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #edf5f2;
  color: #176f61;
  font-size: 8.5px;
  font-weight: 850;
  cursor: pointer;
  transition: background .15s ease,color .15s ease;
}
.ag-password-toggle:hover {
  background: #e1f0eb;
  color: #0e5d52;
}
.ag-submit {
  width: 100%;
  min-height: 49px;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg,#0e8775,#0a6d61);
  box-shadow: 0 10px 22px rgba(13,118,102,.17);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
.ag-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(13,118,102,.22);
  filter: saturate(1.05);
}
.ag-submit:active {
  transform: none;
}
.ag-submit:disabled {
  cursor: wait;
  opacity: .82;
  transform: none;
}
.ag-submit-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform .15s ease;
}
.ag-submit:hover .ag-submit-arrow {
  transform: translateX(2px);
}
.ag-submit.is-loading .ag-submit-arrow {
  display: none;
}
.ag-submit .login-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: agSpin .7s linear infinite;
}
.ag-submit.is-loading .login-spinner {
  display: block;
}
@keyframes agSpin {
  to {
    transform: rotate(360deg);
  }
}
.ag-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e5eeeb;
}
.ag-security-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  padding: 4px;
  border-radius: 8px;
  background: #edf7f3;
  color: #14816f;
}
.ag-security-note strong,.ag-security-note small {
  display: block;
}
.ag-security-note strong {
  color: #4e6d65;
  font-size: 8.8px;
  font-weight: 850;
}
.ag-security-note small {
  margin-top: 3px;
  color: #8b9995;
  font-size: 8px;
  line-height: 1.45;
}
.ag-access-footer {
  margin: 15px 0 0;
  text-align: center;
  color: #91a09c;
  font-size: 8px;
  font-weight: 650;
}
@media (max-width:1100px) {
  .ag-login-shell {
    grid-template-columns: 51% 49%;
  }
  .ag-login-brand {
    padding-left: 42px;
    padding-right: 42px;
  }
  .ag-hero h1 {
    font-size: clamp(42px,5vw,58px);
  }
  .ag-capabilities {
    grid-template-columns: 1fr;
  }
  .ag-capabilities>div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .ag-capabilities>div:last-child {
    border-bottom: 0;
  }
  .ag-capabilities>div:nth-child(3) {
    display: none;
  }
}
@media (max-width:820px) {
  body.ag-login {
    background: #f4f8f6;
  }
  .ag-login-shell {
    display: block;
  }
  .ag-login-brand {
    min-height: auto;
    padding: 24px 24px 30px;
  }
  .ag-system-tag {
    display: none;
  }
  .ag-brand-logo {
    width: 43px;
    height: 43px;
    border-radius: 12px;
  }
  .ag-brand-logo img {
    width: 34px;
    height: 34px;
  }
  .ag-hero {
    width: 100%;
    padding: 45px 0 18px;
  }
  .ag-eyebrow {
    margin-bottom: 12px;
    font-size: 8px;
  }
  .ag-hero h1 {
    max-width: 600px;
    font-size: 40px;
    line-height: 1.02;
  }
  .ag-hero p {
    max-width: 620px;
    margin-top: 14px;
    font-size: 11px;
  }
  .ag-capabilities {
    margin-top: 22px;
    grid-template-columns: repeat(2,1fr);
  }
  .ag-capabilities>div {
    border-bottom: 0;
  }
  .ag-capabilities>div:first-child {
    border-right: 1px solid rgba(255,255,255,.10);
  }
  .ag-brand-bottom,.ag-field-lines,.ag-orbit {
    display: none;
  }
  .ag-login-access {
    min-height: auto;
    padding: 32px 18px 44px;
  }
}
@media (max-width:520px) {
  .ag-login-brand {
    padding: 20px 18px 24px;
  }
  .ag-brand-lockup strong {
    font-size: 14px;
  }
  .ag-brand-lockup small {
    font-size: 8px;
  }
  .ag-hero {
    padding-top: 34px;
  }
  .ag-hero h1 {
    font-size: 34px;
  }
  .ag-hero p {
    font-size: 10.5px;
    line-height: 1.6;
  }
  .ag-capabilities {
    grid-template-columns: 1fr;
  }
  .ag-capabilities>div {
    border-right: 0!important;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .ag-capabilities>div:nth-child(2) {
    border-bottom: 0;
  }
  .ag-login-access {
    padding: 24px 12px 34px;
  }
  .ag-access-meta {
    margin: 0 4px 10px;
  }
  .ag-access-meta small {
    display: none;
  }
  .ag-login-card {
    padding: 28px 20px 24px;
    border-radius: 17px;
  }
  .ag-login-card::before {
    left: 20px;
  }
  .ag-card-head h2 {
    font-size: 27px;
  }
  .ag-card-head p {
    font-size: 10px;
  }
  .ag-input input {
    height: 47px;
    min-height: 47px;
  }
}

/* 2026-10-04 Privacy & Legal footer */
.ag-access-footer{display:flex;justify-content:center;align-items:center;gap:9px;flex-wrap:wrap;text-align:center}.ag-access-footer nav{display:inline-flex;align-items:center;gap:7px}.ag-access-footer nav a{color:inherit;text-decoration:none;font-weight:750}.ag-access-footer nav a:hover,.ag-access-footer nav a:focus{text-decoration:underline}
