:root {
  --fl-blue: #1d6fe0;
  --fl-cyan: #22d3ee;
  --fl-deep: #0f2f6b;
  --fl-gradient: linear-gradient(135deg, #0f2f6b 0%, #1d6fe0 55%, #22d3ee 100%);
}

.s-site-logo-img {
  content: url(../../images/fluxane-mark.svg);
}

.fl-site-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fl-site-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
}

/* --- Login (split-screen) --- */
.fl-login-split {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.fl-login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 3rem;
  background: var(--fl-gradient);
  color: #fff;
}

.fl-login-brand::before,
.fl-login-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.fl-login-brand::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
}

.fl-login-brand::after {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: -80px;
  background: rgba(255, 255, 255, 0.06);
}

.fl-login-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  flex: 1;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

.fl-login-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.fl-login-brand-logo svg {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 16px rgba(15, 47, 107, 0.35));
}

.fl-login-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.fl-login-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.fl-login-points {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.fl-login-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.92);
}

.fl-login-points li i {
  color: #7dd3fc;
  font-size: 1.15rem;
}

.fl-login-brand-footer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.fl-login-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.fl-login-side .s-container-tight {
  width: 100%;
  max-width: 26rem;
}

.fl-login-side > .alert {
  width: 100%;
  max-width: 26rem;
  margin: 0;
}

#s-LoginPage .s-Panel {
  border-radius: 14px;
  border: 1px solid rgba(15, 47, 107, 0.08);
  box-shadow: 0 18px 50px -22px rgba(15, 47, 107, 0.3);
}

.fl-login-spinner {
  display: none;
  margin-right: 0.45rem;
  vertical-align: -0.125em;
}

.fl-login-btn.fl-busy {
  opacity: 0.85;
  pointer-events: none;
}

.fl-login-btn.fl-busy .fl-login-spinner {
  display: inline-block;
}

.fl-password-host {
  position: relative;
}

.fl-password-input {
  padding-right: 2.35rem;
}

.fl-pwd-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6b7a90;
  padding: 0.15rem 0.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.fl-pwd-toggle:hover {
  color: var(--fl-blue, #1d6fe0);
}

@media (max-width: 991.98px) {
  .fl-login-split {
    grid-template-columns: 1fr;
  }

  .fl-login-brand {
    padding: 1.6rem 1.4rem;
  }

  .fl-login-brand-inner {
    gap: 1.1rem;
  }

  .fl-login-copy h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  .fl-login-copy p,
  .fl-login-points,
  .fl-login-brand-footer {
    display: none;
  }

  .fl-login-side {
    padding: 1.75rem 1.25rem;
  }
}

.s-TranslationGrid input.custom-text {
  width: 100%;
  height: 23px;
  padding: 0 3px;
}

.s-PermissionCheckEditor {
  min-height: 450px;
}

.s-sidebar-pane {
  overflow: hidden;
}

.s-sidebar-pane > #s-sidebar-search {
  flex: 0 0 auto;
}

.s-sidebar-pane > #s-sidebar-menu {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.s-sidebar-pane > #s-sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.s-sidebar-pane > #s-sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}