/* ── TOKENS ── */
:root {
  --primary:   #bf4f00;
  --primary-2: #e86f00;
  --mint:      #ffd2a8;
  --surface:   #fff8f1;
  --surface-2: #fff0df;
  --line:      #ffd8b8;
  --ink:       #2d1605;
  --muted:     #6d5a4a;
  --soft:      0 14px 34px rgba(45,22,5,.08);
  --danger:    #b3261e;
  --green:     #2e7d32;
  --green-bg:  rgba(46,125,50,.10);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button, a { -webkit-tap-highlight-color: transparent; }

/* ── NAV ── */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 0 40px;
  background: rgba(255,248,241,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--primary);
  font-weight: 800; font-size: 18px; white-space: nowrap;
}
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--primary); overflow: hidden; flex-shrink: 0;
}
.brand-mark img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.brand small { display: block; font-family: "Roboto Mono",monospace; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.brand strong { display: block; line-height: 1.1; }

.nav-spacer { flex: 1; }
.btn-outline-brand {
  padding: 8px 18px; border-radius: 8px;
  border: 1.5px solid var(--line); background: transparent;
  color: var(--primary); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: border-color .18s, background .18s;
  text-decoration: none;
}
.btn-outline-brand:hover { background: var(--surface-2); border-color: var(--primary-2); }

/* ── MAIN LAYOUT ── */
.login-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

/* ── LEFT PANEL ── */
.login-left {
  background:
    linear-gradient(140deg, rgba(191,79,0,.92), rgba(232,111,0,.80)),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuCWEDAKTdLtxZhhHotrwa8SfoMr5_2Sn3_MixokcGKrCusMOGqrm5xxRrPEQBcwZCOQvcf2yONDshEz4BNubgC3cBLiSrYidicAyLnCK7RpqaDmOylP8-a8blgbgQdm1NbhoUgda2lD0ML0RR2M93wGfB8xp3lNP1andBbbe3iADDJwokjTwGzyuJlcEMQHlJFLq2_v21pihPK63Yy8FgocGuiSD8iXEIl-ZjlLjT2kQbksC5ijXqEXwsjwRjPEsPzLI8Z2iGNJmE6b") center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-left::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at bottom left, rgba(45,22,5,.35) 0%, transparent 65%);
  pointer-events: none;
}
.login-left-content { position: relative; z-index: 1; }

.login-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32);
  font-family: "Roboto Mono",monospace; font-size: 10px;
  font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  margin-bottom: 28px;
}
.login-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.8);
  animation: blink 2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.35} }

.login-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 18px;
}
.login-left p {
  font-size: .97rem; color: rgba(255,255,255,.86);
  line-height: 1.7; max-width: 380px; margin-bottom: 44px;
}

.login-features { display: flex; flex-direction: column; gap: 18px; }
.login-feat {
  display: flex; align-items: flex-start; gap: 14px;
}
.login-feat-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-top: 1px;
}
.login-feat-title { font-size: .9rem; font-weight: 700; line-height: 1.2; }
.login-feat-desc  { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 3px; line-height: 1.5; }

.login-stat-row {
  display: flex; gap: 0; margin-top: 52px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  overflow: hidden;
}
.login-stat {
  flex: 1; padding: 18px 14px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.16);
}
.login-stat:last-child { border-right: none; }
.login-stat .num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.login-stat .lbl { font-family: "Roboto Mono",monospace; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ── RIGHT PANEL (FORM) ── */
.login-right {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 56px;
  background: #fff;
}
.login-form-box { width: 100%; max-width: 400px; }

.form-header { margin-bottom: 36px; }
.form-header .eyebrow {
  font-family: "Roboto Mono",monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary-2); margin-bottom: 8px;
}
.form-header h1 {
  font-size: 1.9rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.5px; line-height: 1.1; margin-bottom: 8px;
}
.form-header p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--ink); margin-bottom: 7px; letter-spacing: .01em;
}
.form-control-erp {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control-erp::placeholder { color: #b8a898; }
.form-control-erp:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(232,111,0,.12);
  background: #fff;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control-erp { padding-left: 40px; }
.input-icon-wrap .fi-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px; pointer-events: none;
}
.input-icon-wrap .fi-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px; cursor: pointer;
  background: none; border: none; padding: 0; line-height: 1;
  transition: color .18s;
}
.input-icon-wrap .fi-toggle:hover { color: var(--primary); }

.form-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; flex-wrap: wrap; gap: 10px;
}
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .83rem; color: var(--muted); cursor: pointer; user-select: none;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary);
  border-radius: 4px; cursor: pointer;
}
.link-primary {
  font-size: .83rem; font-weight: 700;
  color: var(--primary); text-decoration: none;
  transition: color .18s;
}
.link-primary:hover { color: var(--primary-2); }

.btn-brand-full {
  width: 100%; padding: 13px;
  border-radius: 8px; border: none;
  background: var(--primary); color: #fff;
  font-size: .95rem; font-weight: 800;
  font-family: inherit; cursor: pointer;
  transition: background .18s, transform .15s, box-shadow .18s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(191,79,0,.28);
}
.btn-brand-full:hover { background: var(--primary-2); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(191,79,0,.36); }
.btn-brand-full:active { transform: translateY(0); }

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0; color: var(--muted); font-size: .78rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.btn-sso {
  width: 100%; padding: 11px;
  border-radius: 8px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink);
  font-size: .88rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: background .18s, border-color .18s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 12px;
}
.btn-sso:hover { background: var(--surface-2); border-color: var(--primary-2); }
.sso-icon {
  width: 20px; height: 20px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}

.form-footer-text {
  text-align: center; margin-top: 26px;
  font-size: .83rem; color: var(--muted);
}
.form-footer-text a { color: var(--primary); font-weight: 700; text-decoration: none; }
.form-footer-text a:hover { color: var(--primary-2); }

.error-msg {
  display: none;
  background: rgba(179,38,30,.07); border: 1.5px solid rgba(179,38,30,.22);
  color: var(--danger); border-radius: 8px; padding: 10px 14px;
  font-size: .83rem; font-weight: 600; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.error-msg { display: none; }
.error-msg.show { display: flex; }

.gst-badge-small {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(191,79,0,.07); border: 1px solid rgba(191,79,0,.18);
  color: var(--primary); font-family: "Roboto Mono",monospace;
  font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-top: 20px;
}

/* ── FOOTER ── */
.login-footer {
  background: #fff; border-top: 1px solid var(--line);
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.login-footer p { margin: 0; font-size: .75rem; color: var(--muted); }
.login-footer-links { display: flex; gap: 18px; }
.login-footer-links a {
  font-family: "Roboto Mono",monospace; font-size: .65rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .18s;
}
.login-footer-links a:hover { color: var(--primary); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .login-left { display: none; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-right { padding: 48px 28px; }
}
@media (max-width: 480px) {
  .lp-nav { padding: 0 20px; }
  .login-right { padding: 36px 20px; }
  .login-footer { padding: 16px 20px; flex-direction: column; text-align: center; }
}