/* ============================================
   KLIS - Modern Login Page (2026)
   ============================================ */
:root {
  --lg-primary: #2563eb;
  --lg-primary-dark: #1e40af;
  --lg-ink: #0f172a;
  --lg-muted: #64748b;
  --lg-radius: 22px;
}

html, body { height: 100%; }

body.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 500px at 8% -10%, rgba(37, 99, 235, .18), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(14, 165, 233, .16), transparent 60%),
    linear-gradient(160deg, #eef4ff 0%, #f8fafc 45%, #eefbf6 100%);
}

/* ---------- Card shell ---------- */
.login-card {
  width: 100%;
  max-width: 920px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--lg-radius);
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .22), 0 4px 14px rgba(15, 23, 42, .06);
  overflow: hidden;
}

/* ---------- Left (brand) panel ---------- */
.login-brand {
  position: relative;
  padding: 3rem 2.5rem;
  color: #fff;
  background: linear-gradient(155deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.login-brand::before { width: 260px; height: 260px; top: -80px; right: -70px; }
.login-brand::after  { width: 190px; height: 190px; bottom: -60px; left: -50px; }

.login-brand .brand-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(2, 6, 23, .28);
  position: relative;
  z-index: 1;
}
.login-brand h2 {
  position: relative; z-index: 1;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-top: 1.75rem;
  line-height: 1.3;
}
.login-brand p {
  position: relative; z-index: 1;
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
  margin-top: .5rem;
}
.brand-badges { position: relative; z-index: 1; margin-top: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.brand-badges span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .4px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* ---------- Right (form) panel ---------- */
.login-form-panel {
  padding: 3rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.login-form-panel h3 { font-weight: 800; color: var(--lg-ink); letter-spacing: -.4px; }
.login-form-panel .login-sub { color: var(--lg-muted); font-size: .9rem; margin-top: .25rem; }

.lg-label {
  font-size: .78rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: .35rem;
  display: block;
}

.lg-input-group {
  position: relative;
  margin-bottom: 1.1rem;
}
.lg-input-group > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: .95rem;
  pointer-events: none;
}
.lg-input-group input {
  width: 100%;
  padding: .8rem 1rem .8rem 2.6rem;
  font-size: .95rem;
  color: var(--lg-ink);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lg-input-group input::placeholder { color: #a0aec0; }
.lg-input-group input:focus {
  background: #fff;
  border-color: var(--lg-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

/* toggle show/hide password */
.lg-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: .25rem;
  font-size: .95rem;
  line-height: 1;
}
.lg-eye:hover { color: var(--lg-primary); }

/* ---------- Button ---------- */
.lg-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.2rem;
  margin-top: .4rem;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .55);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.lg-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -8px rgba(37, 99, 235, .6); filter: brightness(1.04); }
.lg-btn:active { transform: translateY(0); }

.lg-footnote {
  margin-top: 1.4rem;
  font-size: .78rem;
  color: #94a3b8;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .login-brand { padding: 2.25rem 1.75rem; text-align: center; align-items: center; }
  .login-brand .brand-logo { width: 110px; height: 110px; }
  .login-form-panel { padding: 2.25rem 1.5rem; }
}