:root {
  --green: #35b84b;
  --green-dark: #16892b;
  --orange: #f4aa00;
  --ink: #263026;
  --muted: #6f7e70;
  --panel: rgba(255,255,255,.78);
  --border: rgba(38,48,38,.12);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f8fbf3 0%, #edf8ed 45%, #fff7e4 100%);
  overflow-x: hidden;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 22px;
  position: relative;
  isolation: isolate;
}
.pattern-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .72;
  background-image:
    url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2316892b' stroke-opacity='.18' stroke-width='2'%3E%3Cpath d='M28 92h58v24H28zM36 92V78h42v14M42 78v-9h30v9M30 116h54M96 40c-19 4-31 15-36 34 20-3 33-15 36-34ZM44 44c17 4 27 14 31 30-18-2-29-13-31-30ZM103 93h19M112 84v19M17 30h18M26 21v18'/%3E%3C/g%3E%3Cg fill='%23f4aa00' fill-opacity='.16'%3E%3Ccircle cx='114' cy='112' r='5'/%3E%3Ccircle cx='24' cy='52' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 150px;
  animation: patternDrift 34s linear infinite;
}
.login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 22%, rgba(53,184,75,.18), transparent 25%),
    radial-gradient(circle at 84% 75%, rgba(244,170,0,.18), transparent 28%),
    linear-gradient(90deg, rgba(255,255,255,.70), rgba(255,255,255,.36));
}
@keyframes patternDrift {
  from { background-position: 0 0; }
  to { background-position: 300px 150px; }
}
.login-stage {
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 1px minmax(360px, .8fr);
  gap: 42px;
  align-items: center;
}
.intro-panel { min-width: 0; }
.intro-logo {
  display: block;
  width: 218px;
  height: auto;
  margin: 0 0 44px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.intro-panel h1 {
  margin: 0;
  max-width: 650px;
  color: var(--ink);
  font-size: clamp(40px, 5.3vw, 74px);
  line-height: .96;
  letter-spacing: -.055em;
}
.intro-panel h1 span {
  display: inline-block;
  background: linear-gradient(100deg, var(--green-dark), var(--green), var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(18px);
  animation: titleRise .8s ease forwards;
}
.typing-line {
  width: 0;
  max-width: max-content;
  margin: 22px 0 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--orange);
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  animation: typing 3.3s steps(76, end) .7s forwards, caretBlink .9s step-end infinite;
}
.intro-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.intro-metrics span {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.56);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  animation: titleRise .65s ease forwards;
}
.intro-metrics span:nth-child(1) { animation-delay: 1.2s; }
.intro-metrics span:nth-child(2) { animation-delay: 1.35s; }
.intro-metrics span:nth-child(3) { animation-delay: 1.5s; }
.intro-metrics strong { color: var(--green-dark); }
.login-divider {
  align-self: stretch;
  min-height: 440px;
  background: linear-gradient(180deg, transparent, rgba(22,137,43,.28), rgba(244,170,0,.28), transparent);
}
.login-panel {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 28px;
  backdrop-filter: blur(22px);
}
.brand-block span {
  display: inline-flex;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand-block h2 { margin: 8px 0 0; font-size: 30px; line-height: 1.08; letter-spacing: -.03em; }
.brand-block p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.login-error {
  margin-top: 18px;
  border: 1px solid rgba(220,38,38,.24);
  border-radius: 10px;
  background: rgba(254,226,226,.8);
  color: #b91c1c;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 850;
}
.login-form { display: grid; gap: 15px; margin-top: 22px; }
.login-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 900; }
.field-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  padding: 0 13px;
  transition: border-color .18s ease, background .18s ease;
}
.field-wrap:focus-within { border-color: rgba(53,184,75,.72); background: #fff; }
.field-wrap svg { width: 18px; height: 18px; color: var(--green-dark); flex: none; }
.field-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 13px 0;
}
.field-wrap input::placeholder { color: #a2aca2; }
.password-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
}
.login-btn {
  min-height: 49px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
}
.login-btn:hover { filter: saturate(1.06) brightness(.98); }
footer {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}
@keyframes titleRise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typing {
  to { width: 100%; }
}
@keyframes caretBlink {
  50% { border-color: transparent; }
}
@media (max-width: 920px) {
  .login-stage { grid-template-columns: 1fr; gap: 26px; }
  .login-divider { display: none; }
  .intro-logo { margin-bottom: 26px; }
  .typing-line { white-space: normal; width: auto; border-right: 0; animation: titleRise .7s ease .5s both; }
}
@media (max-width: 520px) {
  .login-shell { padding: 20px 12px; }
  .login-panel { padding: 22px; border-radius: 12px; }
  .intro-logo { width: 188px; }
  .intro-panel h1 { font-size: 36px; }
  .intro-metrics { gap: 8px; }
}
