/* Premium HRMS login — scoped under .lpr-page (no legacy .login-split dependency) */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Instrument+Sans:wght@500;600;700&display=swap');

.lpr-page {
  --lpr-navy: #0b1224;
  --lpr-slate: #1c2742;
  --lpr-iris: #3d5afc;
  --lpr-teal: #0d9488;
  --lpr-coral: #e85d5d;
  --lpr-glass: rgba(255, 255, 255, 0.72);
  --lpr-font: 'DM Sans', 'Inter', system-ui, sans-serif;
  --lpr-display: 'Instrument Sans', 'Outfit', system-ui, sans-serif;
  font-family: var(--lpr-font);
  color: #0f172a;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.lpr-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(61, 90, 252, 0.16) 0%, transparent 50%),
    radial-gradient(90% 60% at 100% 20%, rgba(232, 93, 93, 0.12) 0%, transparent 45%),
    radial-gradient(80% 50% at 50% 100%, rgba(13, 148, 136, 0.09) 0%, transparent 50%),
    linear-gradient(168deg, #f4f7ff 0%, #eef2fb 42%, #e8eef9 100%);
  pointer-events: none;
}

.lpr-bg::before,
.lpr-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.lpr-bg::before {
  width: min(80vw, 520px);
  height: min(80vw, 520px);
  background: radial-gradient(circle, rgba(61, 90, 252, 0.35) 0%, transparent 72%);
  top: -14%;
  right: -8%;
  animation: lprDrift 24s ease-in-out infinite alternate;
}

.lpr-bg::after {
  width: min(70vw, 440px);
  height: min(70vw, 440px);
  background: radial-gradient(circle, rgba(13, 148, 136, 0.28) 0%, transparent 70%);
  bottom: -20%;
  left: -12%;
  animation: lprDrift 30s ease-in-out infinite alternate-reverse;
}

@keyframes lprDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(3%, -4%) scale(1.06);
  }
}

.lpr-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lpr-shape {
  position: absolute;
  border-radius: 999px;
  opacity: 0.35;
  animation: lprFloat 14s ease-in-out infinite;
}

.lpr-shape--1 {
  width: 12px;
  height: 12px;
  top: 18%;
  left: 12%;
  background: linear-gradient(135deg, var(--lpr-iris), var(--lpr-teal));
  animation-delay: 0s;
}

.lpr-shape--2 {
  width: 8px;
  height: 8px;
  top: 42%;
  left: 8%;
  background: var(--lpr-coral);
  animation-delay: -3s;
}

.lpr-shape--3 {
  width: 140px;
  height: 140px;
  bottom: 12%;
  right: 42%;
  background: linear-gradient(135deg, rgba(61, 90, 252, 0.15), rgba(13, 148, 136, 0.12));
  filter: blur(2px);
  animation-duration: 20s;
  animation-delay: -5s;
}

@keyframes lprFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.lpr-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
}

@media (max-width: 991.98px) {
  .lpr-shell {
    grid-template-columns: 1fr;
  }
}

/* --- Brand panel --- */
.lpr-brand {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.75rem);
  color: #f8fafc;
  display: flex;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(11, 18, 36, 0.97) 0%, rgba(28, 39, 66, 0.96) 45%, rgba(15, 24, 48, 0.98) 100%);
}

@media (max-width: 991.98px) {
  .lpr-brand {
    display: none;
  }
}

.lpr-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 120% 60% at 100% -10%, rgba(61, 90, 252, 0.45) 0%, transparent 52%),
    radial-gradient(circle at 0% 100%, rgba(13, 148, 136, 0.35) 0%, transparent 48%);
  pointer-events: none;
}

.lpr-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-inline: auto 0;
  opacity: 0;
  animation: lprReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lprReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lpr-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  margin-bottom: 1.35rem;
}

.lpr-brand-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.lpr-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 1rem;
}

.lpr-logo-wrap img {
  max-height: 3.75rem;
  max-width: 200px;
  width: auto;
  object-fit: contain;
}

.lpr-brand-kicker {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.55rem;
}

.lpr-brand-name {
  font-family: var(--lpr-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.lpr-brand-tagline {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.78);
  margin-bottom: 1.85rem;
  max-width: 34ch;
}

.lpr-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.85rem;
}

@media (max-width: 1199.98px) {
  .lpr-feature-grid {
    grid-template-columns: 1fr;
  }
}

.lpr-feature-card {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.72rem;
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.835rem;
  line-height: 1.35;
}

@media (hover: hover) {
  .lpr-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }
}

.lpr-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 0.72rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(61, 90, 252, 0.35), rgba(13, 148, 136, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e7ff;
  font-size: 1.05rem;
}

.lpr-feature-title {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.06rem;
  color: #fff;
}

.lpr-feature-sub {
  font-size: 0.72rem;
  opacity: 0.68;
}

.lpr-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.85rem;
}

.lpr-stat {
  padding: 0.7rem 0.72rem;
  border-radius: 0.92rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.lpr-stat-val {
  font-family: var(--lpr-display);
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lpr-stat-lab {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 0.15rem;
}

.lpr-dash-mock {
  border-radius: 1rem;
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  margin-bottom: 1.65rem;
}

.lpr-dash-mock-h {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.55rem;
}

.lpr-mock-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lpr-mock-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 0.45rem;
  align-items: center;
}

.lpr-mock-pill {
  height: 7px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.2);
}

.lpr-mock-pill--w {
  width: 72%;
}

.lpr-mock-pill--c {
  width: 100%;
}

.lpr-mock-bar-wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 4px));
  gap: 4px;
  justify-content: flex-end;
}

.lpr-mock-bar {
  width: 4px;
  height: 26px;
  border-radius: 2px;
  background: rgba(226, 232, 240, 0.12);
}

.lpr-mock-bar:nth-child(3),
.lpr-mock-bar:nth-child(6),
.lpr-mock-bar:nth-child(9),
.lpr-mock-bar:nth-child(11) {
  background: linear-gradient(180deg, rgba(167, 180, 255, 0.75), rgba(61, 90, 252, 0.75));
}

.lpr-mock-dot {
  width: 29px;
  height: 16px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.12);
}

.lpr-mock-dot--live {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.lpr-brand-contact {
  font-size: 0.8rem;
  line-height: 1.65;
}

.lpr-brand-contact a {
  color: inherit;
}

.lpr-contact-line {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.42rem;
  opacity: 0.74;
}

.lpr-contact-icon {
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
}

/* --- Main / form pane --- */
.lpr-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem);
}

.lpr-mobile-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
  .lpr-mobile-brand {
    display: none !important;
  }
}

.lpr-mobile-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: 0.92rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.lpr-mobile-logo img {
  max-height: 2.85rem;
  max-width: 160px;
  object-fit: contain;
}

.lpr-mobile-title {
  font-family: var(--lpr-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-top: 0.85rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.lpr-card {
  width: 100%;
  max-width: 418px;
  border-radius: 1.35rem;
  padding: clamp(1.85rem, 4vw, 2.45rem);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04) inset,
    0 32px 72px -32px rgba(15, 23, 42, 0.32),
    0 14px 40px -24px rgba(61, 90, 252, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  animation: lprReveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.lpr-card-head {
  text-align: center;
  margin-bottom: 1.35rem;
}

.lpr-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.lpr-card-title {
  font-family: var(--lpr-display);
  font-weight: 800;
  font-size: clamp(1.52rem, 3.5vw, 1.75rem);
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.28rem;
}

.lpr-card-sub {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.48;
}

.lpr-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.92rem;
  font-size: 0.71rem;
  font-weight: 600;
  color: #64748b;
}

.lpr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.lpr-chip i {
  color: #059669;
  font-size: 0.92rem;
}

.lpr-alert {
  border-radius: 0.9rem !important;
  border: 0 !important;
  padding: 0.65rem 0.82rem !important;
  font-size: 0.88rem !important;
  font-weight: 500;
  margin-bottom: 1.05rem !important;
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.12);
}

.lpr-field {
  margin-bottom: 1.05rem;
}

.lpr-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.42rem;
  color: #64748b;
}

.lpr-input-shell {
  position: relative;
  display: flex;
  align-items: stretch;
}

.lpr-input-shell .lpr-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
}

.lpr-input-shell .lpr-input.with-icon {
  padding-left: 2.72rem !important;
}

.lpr-input {
  width: 100%;
  border-radius: 0.92rem !important;
  padding: 0.78rem 1rem !important;
  border: 1.5px solid rgba(148, 163, 184, 0.45) !important;
  font-size: 1rem !important;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: rgba(248, 250, 252, 0.85);
}

.lpr-input:hover {
  border-color: rgba(100, 116, 139, 0.6) !important;
}

.lpr-input:focus {
  outline: none;
  border-color: rgba(61, 90, 252, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(61, 90, 252, 0.12) !important;
  background: #fff !important;
}

.lpr-password-wrap .lpr-input {
  padding-right: 3rem !important;
}

.lpr-toggle-pw {
  position: absolute;
  right: 0.42rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lpr-toggle-pw:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #334155;
}

.lpr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.lpr-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.lpr-checkbox input {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.3rem !important;
  border-color: #cbd5e1 !important;
}

.lpr-checkbox input:checked {
  background-color: #3d5afc !important;
  border-color: #3d5afc !important;
}

.lpr-checkbox small {
  display: block;
  font-weight: 500;
  font-size: 0.71rem;
  color: #94a3b8;
}

.lpr-forgot {
  font-size: 0.825rem;
  font-weight: 700;
}

.lpr-forgot a {
  color: #4338ca;
  text-decoration: none;
}

.lpr-forgot a:hover {
  text-decoration: underline;
}

.lpr-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 0.95rem !important;
  padding: 0.9rem 1.25rem !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  font-family: var(--lpr-display);
  letter-spacing: 0.03em;
  color: #fff !important;
  background: linear-gradient(125deg, #4f46e5 0%, #3d5afc 34%, #0d9488 100%) !important;
  box-shadow:
    0 18px 40px rgba(61, 90, 252, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.15s ease, opacity 0.2s ease;
}

.lpr-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 24px 54px rgba(61, 90, 252, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.lpr-submit:active:not(:disabled) {
  transform: translateY(0);
}

.lpr-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.lpr-spinner {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.42rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lprSpin 0.65s linear infinite;
  display: inline-block;
  vertical-align: middle;
  opacity: 0;
}

.lpr-submit.is-busy .lpr-spinner {
  opacity: 1;
}

.lpr-submit.is-busy .lpr-submit-text-i {
  opacity: 0.85;
}

@keyframes lprSpin {
  to {
    transform: rotate(360deg);
  }
}

.lpr-demo {
  margin-top: 1.25rem;
  font-size: 0.765rem;
  text-align: center;
  color: #94a3b8;
}

.lpr-demo kbd {
  border-radius: 0.4rem !important;
  padding: 0.12rem 0.42rem !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  font-size: 0.71rem !important;
  font-weight: 600;
  background: rgba(248, 250, 252, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  *,
  .lpr-shape,
  .lpr-bg::before,
  .lpr-bg::after {
    animation: none !important;
    transition-duration: 0s !important;
  }

  .lpr-brand-inner,
  .lpr-card {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}
