/* ============================================================
   Grace Infosoft — Modern login pages (client + staff)
   Dark AI-style matching index.php, mobile responsive
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

.lg-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Public Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #E8EDF7;
  background: #070B16;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  position: relative;
}
.lg-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120,150,220,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,220,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}
.lg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  pointer-events: none;
  animation: lg-drift 14s ease-in-out infinite alternate;
}
.lg-orb-1 { width: 440px; height: 440px; top: -150px; left: -110px;
            background: radial-gradient(circle, #2E5BFF 0%, transparent 70%); }
.lg-orb-2 { width: 380px; height: 380px; bottom: -130px; right: -90px;
            background: radial-gradient(circle, #F0A322 0%, transparent 70%);
            opacity: .3; animation-delay: -7s; }
@keyframes lg-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(35px,25px) scale(1.07); }
}

.lg-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin-bottom: 26px;
  text-decoration: none;
}
.lg-logo .mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-size: 19px;
  background: linear-gradient(135deg, #2E5BFF, #7C4DFF);
  box-shadow: 0 0 24px rgba(46,91,255,.55);
}
.lg-logo small {
  display: block;
  font-family: 'Public Sans', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8B9BC0;
}

.lg-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  padding: 30px 28px 24px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(140,165,220,.2);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  overflow: hidden;
}
.lg-box::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-glow, #2E5BFF), transparent);
}
.lg-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.lg-box .lg-sub {
  font-size: 13.5px;
  color: #8B99BB;
  margin-bottom: 22px;
}
.lg-box .lg-sub .mr { display: block; font-size: 12.5px; color: #6E7C9E; margin-top: 2px; }

.lg-group { margin-bottom: 15px; }
.lg-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #AFC0E2;
  margin-bottom: 6px;
}
.lg-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(10,16,30,.55);
  border: 1px solid rgba(140,165,220,.28);
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s;
}
.lg-group input:focus {
  outline: none;
  border-color: var(--lg-glow, #2E5BFF);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lg-glow, #2E5BFF) 25%, transparent);
  box-shadow: 0 0 0 3px rgba(46,91,255,.25);
}
.lg-group input::placeholder { color: #5E6C8E; }

.lg-btn {
  display: block;
  width: 100%;
  padding: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(92deg, var(--lg-glow, #2E5BFF), color-mix(in srgb, var(--lg-glow, #2E5BFF) 60%, #7C4DFF));
  background: linear-gradient(92deg, #2E5BFF, #5B45E0);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(46,91,255,.35);
  transition: transform .12s, box-shadow .18s, filter .18s;
}
.lg-btn:hover { filter: brightness(1.12); box-shadow: 0 8px 26px rgba(46,91,255,.5); }
.lg-btn:active { transform: translateY(1px); }

.lg-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 16px;
  background: rgba(192,57,43,.16);
  border: 1px solid rgba(230,90,75,.4);
  color: #FF9E92;
}

.lg-links {
  margin-top: 18px;
  font-size: 13px;
  text-align: center;
  color: #6E7C9E;
}
.lg-links a { color: #9FB8FF; text-decoration: none; font-weight: 600; }
.lg-links a:hover { color: #fff; text-decoration: underline; }

.lg-footer {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  font-size: 12px;
  color: #5E6C8E;
  text-align: center;
}
.lg-footer b { color: #AFC0E2; }

/* staff variant accent */
.lg-staff .lg-box::before { background: linear-gradient(90deg, transparent, #F0A322, transparent); }
.lg-staff .lg-btn {
  background: linear-gradient(92deg, #E09A15, #C97A0A);
  box-shadow: 0 6px 20px rgba(240,163,34,.3);
}
.lg-staff .lg-btn:hover { box-shadow: 0 8px 26px rgba(240,163,34,.45); }
.lg-staff .lg-group input:focus {
  border-color: #F0A322;
  box-shadow: 0 0 0 3px rgba(240,163,34,.22);
}

@media (max-width: 480px) {
  .lg-box { padding: 24px 18px 20px; border-radius: 15px; }
  .lg-logo { font-size: 15.5px; }
  .lg-orb { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-orb { animation: none; }
}
