/* ============================================================
   AEHVS Laboratory — Login Page Stylesheet (login.css)
   Brand Primary: #008a40
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --lg-green: #008a40;
  --lg-green-dk: #006c31;
  --lg-green-lt: rgba(0, 138, 64, 0.08);
  --lg-green-glow: rgba(0, 138, 64, 0.18);
  --lg-green-mid: rgba(0, 138, 64, 0.12);

  --lg-ink: #0f172a;
  --lg-ink2: #475569;
  --lg-ink3: #94a3b8;

  --lg-white: #ffffff;
  --lg-surf: #f8fafc;
  --lg-surf2: #f1f5f9;
  --lg-border: #e2e8f0;
  --lg-border2: #cbd5e1;

  --lg-danger: #dc2626;
  --lg-danger-bg: #fef2f2;
  --lg-danger-bdr: #fca5a5;

  --lg-radius: 14px;
  --lg-radius-sm: 8px;
  --lg-radius-pill: 50px;

  --lg-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --lg-shadow-btn: 0 4px 16px rgba(0, 138, 64, 0.30);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.lg-body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--lg-ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(0, 138, 64, .07) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(0, 138, 64, .05) 0%, transparent 55%),
    #f1f5f9;
  background-attachment: fixed;
}

/* ── Main Shell ── */
.lg-wrap {
  display: flex;
  width: 100%;
  max-width: 940px;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 30, 15, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 138, 64, 0.1);
}

/* ============================================================
   LEFT PANEL — Dark Brand Panel
   ============================================================ */
.lg-left {
  flex: 1;
  background: linear-gradient(145deg, #071812 0%, #0a2018 40%, #071812 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 38px;
  position: relative;
  overflow: hidden;
}

/* Background decorations */
.lg-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 168, 100, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 100, .055) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.lg-bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.lg-bg-glow--br {
  bottom: -140px;
  right: -140px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 168, 64, .16) 0%, transparent 65%);
}

.lg-bg-glow--tl {
  top: -90px;
  left: -90px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 168, 64, .09) 0%, transparent 65%);
}

/* Live badge */
.lg-badge {
  position: absolute;
  top: 36px;
  right: 36px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 138, 64, .14);
  border: 1px solid rgba(0, 200, 100, .22);
  border-radius: var(--lg-radius-pill);
  padding: 6px 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .65);
  font-weight: 400;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
}

.lg-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: lgBlink 2s ease-in-out infinite;
}

@keyframes lgBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .25;
  }
}

/* Logo & content */
.lg-left-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
}

.lg-logo-wrap {
  background: rgba(255, 255, 255, .97);
  border-radius: 12px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
  align-self: flex-start;
}

.lg-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.lg-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.3px;
  margin-bottom: 12px;
}

.lg-headline em {
  font-style: italic;
  color: #86efac;
}

.lg-subtext {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  line-height: 1.65;
  font-weight: 300;
  max-width: 340px;
  margin-bottom: 20px;
}

/* Feature pills */
.lg-pills {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  z-index: 2;
}

.lg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  font-weight: 400;
}

.lg-pill svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #4ade80;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Stats row */
.lg-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 20px;
  margin-top: 20px;
}

.lg-stat {
  flex: 1;
}

.lg-stat+.lg-stat {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.lg-stat-val {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.lg-stat-label {
  font-size: 9.5px;
  color: rgba(255, 255, 255, .32);
  margin-top: 4px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 400;
}

.lg-stat-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(0, 168, 80, .15);
  border: 1px solid rgba(0, 200, 100, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.lg-stat-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #86efac;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   RIGHT PANEL — Login Form
   ============================================================ */
.lg-right {
  width: 400px;
  flex-shrink: 0;
  background: var(--lg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.lg-right-inner {
  padding: 32px 38px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* System tag */
.lg-system-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lg-green);
  background: var(--lg-green-lt);
  padding: 5px 12px 5px 7px;
  border-radius: var(--lg-radius-pill);
  margin-bottom: 16px;
  align-self: flex-start;
}

.lg-system-tag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

/* Header */
.lg-right-hdr {
  margin-bottom: 20px;
}

.lg-right-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--lg-ink);
  line-height: 1.1;
  letter-spacing: -.2px;
  margin-bottom: 5px;
}

.lg-right-sub {
  font-size: 13px;
  color: var(--lg-ink3);
  font-weight: 300;
  line-height: 1.55;
}

/* Error alert */
.lg-alert-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--lg-danger-bg);
  border: 1px solid var(--lg-danger-bdr);
  color: var(--lg-danger);
  border-radius: var(--lg-radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.lg-alert-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--lg-danger);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}

/* ── Form Fields ── */
.lg-field {
  margin-bottom: 14px;
}

.lg-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lg-ink2);
  margin-bottom: 5px;
  letter-spacing: .01em;
}

.lg-input-wrap {
  position: relative;
}

.lg-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: .4;
}

.lg-input-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--lg-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-input {
  width: 100%;
  background: var(--lg-surf);
  border: 1.5px solid var(--lg-border);
  border-radius: var(--lg-radius-sm);
  padding: 10px 14px 10px 38px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: var(--lg-ink);
  outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
  display: block;
  line-height: 1.4;
}

.lg-input::placeholder {
  color: var(--lg-ink3);
  font-weight: 300;
}

.lg-input:focus {
  border-color: var(--lg-green);
  background: #fff;
  box-shadow: 0 0 0 4px var(--lg-green-glow);
}

.lg-input--pw {
  padding-right: 42px;
}

/* Password toggle */
.lg-pw-toggle {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--lg-ink3);
  transition: color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.lg-pw-toggle:hover {
  color: var(--lg-ink2);
}

.lg-pw-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Remember me */
.lg-rem-row {
  margin-bottom: 16px;
}

.lg-cb-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.lg-cb-input {
  display: none;
}

.lg-cb-box {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1.5px solid var(--lg-border2);
  border-radius: 4px;
  background: var(--lg-surf2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}

.lg-cb-input:checked+.lg-cb-box {
  background: var(--lg-green);
  border-color: var(--lg-green);
}

.lg-cb-box svg {
  display: none;
  width: 10px;
  height: 10px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-cb-input:checked+.lg-cb-box svg {
  display: block;
}

.lg-cb-label {
  font-size: 13px;
  color: var(--lg-ink2);
  font-weight: 400;
}

/* Submit button */
.lg-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #009848 0%, #006c31 100%);
  color: #fff;
  border: none;
  border-radius: var(--lg-radius-sm);
  padding: 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .22s ease;
  box-shadow: var(--lg-shadow-btn);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.lg-btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent);
  pointer-events: none;
}

.lg-btn-submit:hover {
  background: linear-gradient(135deg, #00a852 0%, #007838 100%);
  box-shadow: 0 6px 24px rgba(0, 138, 64, .38);
  transform: translateY(-1.5px);
}

.lg-btn-submit:active {
  transform: translateY(0);
}

.lg-btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  flex-shrink: 0;
}

.lg-btn-icon svg {
  width: 13px;
  height: 13px;
}

.lg-btn-submit:hover .lg-btn-icon {
  transform: translateX(3px);
}

/* ── Footer ── */
.lg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--lg-border);
}

.lg-foot-sec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--lg-ink3);
}

.lg-foot-sec svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .65;
}

.lg-foot-ver {
  font-size: 11px;
  color: var(--lg-ink3);
  letter-spacing: .04em;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .lg-left {
    display: none;
  }

  .lg-right {
    width: 100%;
  }

  .lg-wrap {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .lg-body {
    padding: 0;
  }

  .lg-right-inner {
    padding: 32px 24px;
  }
}

@media (max-width: 420px) {
  .lg-right-inner {
    padding: 24px 18px;
  }

  .lg-right-title {
    font-size: 26px;
  }
}