:root {
  --login-bg: #07111f;
  --login-panel: rgba(255, 255, 255, 0.92);
  --login-panel-border: rgba(255, 255, 255, 0.72);
  --login-text: #111827;
  --login-muted: #64748b;
  --login-line: #d7e0ea;
  --login-accent: #14c8ff;
  --login-accent-2: #3478f6;
  --login-success: #38f2bd;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

body.authentication-bg {
  min-height: 100vh !important;
  margin: 0;
  overflow: hidden;
  font-family: "Play", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--login-text);
  background:
    radial-gradient(circle at 50% 22%, rgba(20, 200, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(52, 120, 246, 0.16), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0c1829 56%, #08111f 100%) !important;
  background-size: auto !important;
  animation: none !important;
}

body.authentication-bg::before,
body.authentication-bg::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body.authentication-bg::before {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 78%);
  animation: gridMove 24s linear infinite;
}

body.authentication-bg::after {
  background:
    radial-gradient(circle at 22% 34%, rgba(20, 200, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 28%, rgba(56, 242, 189, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 76%, rgba(52, 120, 246, 0.18) 0 2px, transparent 3px),
    linear-gradient(115deg, transparent 18%, rgba(20, 200, 255, 0.08) 18.2%, transparent 36%),
    linear-gradient(35deg, transparent 44%, rgba(56, 242, 189, 0.06) 44.2%, transparent 62%);
  background-size: 420px 420px, 520px 520px, 460px 460px, 680px 680px, 780px 780px;
  opacity: 0.72;
  animation: ambientMove 18s ease-in-out infinite alternate;
}

.neural-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.neural-line,
.neural-node,
.neural-chip,
.flow,
.ai-shape,
.scan-beam {
  position: absolute;
  pointer-events: none;
}

.neural-line {
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(20, 200, 255, 0.42), rgba(56, 242, 189, 0.18), transparent);
  box-shadow: 0 0 16px rgba(20, 200, 255, 0.2);
  opacity: 0.5;
  animation: linePulse 5s ease-in-out infinite;
}

.line-one {
  top: 34%;
  left: 12%;
  width: 32vw;
  transform: rotate(16deg);
}

.line-two {
  right: 10%;
  bottom: 32%;
  width: 30vw;
  transform: rotate(-20deg);
  animation-delay: 1.2s;
}

.line-three {
  top: 18%;
  right: 22%;
  width: 22vw;
  transform: rotate(46deg);
  animation-delay: 2.1s;
}

.neural-node {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(229, 246, 255, 0.82);
  border-radius: 999px;
  background: rgba(20, 200, 255, 0.9);
  box-shadow: 0 0 22px rgba(20, 200, 255, 0.7);
  animation: nodeBlink 3.8s ease-in-out infinite;
}

.node-a {
  top: 28%;
  left: 14%;
}

.node-b {
  top: 42%;
  left: 28%;
  background: rgba(56, 242, 189, 0.9);
  box-shadow: 0 0 22px rgba(56, 242, 189, 0.65);
  animation-delay: 0.6s;
}

.node-c {
  right: 18%;
  bottom: 28%;
  animation-delay: 1.1s;
}

.node-d {
  top: 22%;
  right: 24%;
  background: rgba(52, 120, 246, 0.9);
  box-shadow: 0 0 22px rgba(52, 120, 246, 0.65);
  animation-delay: 1.7s;
}

.neural-chip {
  top: 50%;
  left: calc(50% - 310px);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: rgba(232, 250, 255, 0.88);
  border: 1px solid rgba(20, 200, 255, 0.22);
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.42);
  box-shadow: 0 0 36px rgba(20, 200, 255, 0.16);
  transform: translateY(-50%);
  animation: chipFloat 5.2s ease-in-out infinite;
}

.neural-chip::before,
.neural-chip::after {
  position: absolute;
  inset: -10px;
  content: "";
  border: 1px solid rgba(20, 200, 255, 0.12);
  border-radius: 22px;
}

.neural-chip::after {
  inset: -20px;
  border-color: rgba(56, 242, 189, 0.08);
}

.flow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(20, 200, 255, 0.15);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.38);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12), inset 0 0 24px rgba(20, 200, 255, 0.04);
  backdrop-filter: blur(8px);
  opacity: 0.76;
  animation: flowFloat 6s ease-in-out infinite;
}

.flow-one {
  top: 24%;
  left: calc(50% + 240px);
}

.flow-two {
  bottom: 22%;
  left: calc(50% - 470px);
  animation-delay: 1.1s;
}

.flow-three {
  right: 8%;
  bottom: 48%;
  animation-delay: 2s;
}

.flow-node {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  color: rgba(232, 250, 255, 0.94);
  border: 1px solid rgba(229, 246, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 200, 255, 0.14);
  box-shadow: 0 0 18px rgba(20, 200, 255, 0.2);
  animation: flowNodePulse 3.2s ease-in-out infinite;
}

.flow-node::after {
  content: attr(data-logo);
  color: rgba(234, 252, 255, 0.96);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.flow-node i {
  display: none;
}

.flow-node:nth-child(3) {
  background: rgba(56, 242, 189, 0.13);
  box-shadow: 0 0 18px rgba(56, 242, 189, 0.18);
  animation-delay: 0.45s;
}

.flow-node:nth-child(5) {
  background: rgba(52, 120, 246, 0.16);
  box-shadow: 0 0 18px rgba(52, 120, 246, 0.2);
  animation-delay: 0.9s;
}

.flow-link {
  position: relative;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: rgba(148, 218, 255, 0.18);
  overflow: hidden;
}

.flow-link::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--login-accent), transparent);
  transform: translateX(-100%);
  animation: flowSignal 2.8s ease-in-out infinite;
}

.ai-shape {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(20, 200, 255, 0.14);
  background: linear-gradient(135deg, rgba(20, 200, 255, 0.08), rgba(56, 242, 189, 0.03));
  opacity: 0.58;
  animation: shapeSpin 14s linear infinite;
}

.shape-one {
  top: 15%;
  left: 25%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.shape-two {
  right: 22%;
  bottom: 14%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  animation-duration: 18s;
  animation-direction: reverse;
}

.shape-three {
  left: 12%;
  bottom: 12%;
  clip-path: polygon(50% 0, 100% 88%, 0 88%);
  animation-duration: 16s;
}

.scan-beam {
  top: -20%;
  left: 50%;
  width: 1px;
  height: 140%;
  background: linear-gradient(to bottom, transparent, rgba(20, 200, 255, 0.36), transparent);
  box-shadow: 0 0 30px rgba(20, 200, 255, 0.24);
  transform: rotate(18deg);
  animation: scanSweep 9s ease-in-out infinite;
  opacity: 0.48;
}

html {
  overflow-x: clip;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100% - 32px, 1180px);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  padding: 18px 0;
}

.login-panel {
  position: relative;
  width: min(100%, 430px);
}

.login-panel::before {
  position: absolute;
  inset: -36px;
  z-index: -1;
  content: "";
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 200, 255, 0.22), transparent 46%),
    radial-gradient(circle at 0% 90%, rgba(56, 242, 189, 0.12), transparent 38%);
  filter: blur(10px);
  animation: panelGlow 4.8s ease-in-out infinite alternate;
}

.login-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(26px, 4vh, 34px);
  border: 1px solid var(--login-panel-border);
  border-radius: 8px;
  background: var(--login-panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.login-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--login-accent), var(--login-success), transparent);
  opacity: 0.9;
}

.login-card::after {
  position: absolute;
  top: -80px;
  right: -100px;
  width: 210px;
  height: 210px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 200, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.card-orbit,
.card-corner {
  position: absolute;
  pointer-events: none;
}

.card-orbit {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--login-accent);
  box-shadow: 0 0 18px rgba(20, 200, 255, 0.82);
}

.orbit-one {
  top: 22px;
  left: 28px;
  animation: dotFloat 3.8s ease-in-out infinite;
}

.orbit-two {
  right: 30px;
  bottom: 28px;
  background: var(--login-success);
  box-shadow: 0 0 18px rgba(56, 242, 189, 0.76);
  animation: dotFloat 4.2s ease-in-out infinite 0.7s;
}

.card-corner {
  width: 34px;
  height: 34px;
  opacity: 0.42;
}

.corner-one {
  top: 18px;
  right: 18px;
  border-top: 1px solid rgba(20, 200, 255, 0.8);
  border-right: 1px solid rgba(20, 200, 255, 0.8);
}

.corner-two {
  bottom: 18px;
  left: 18px;
  border-bottom: 1px solid rgba(56, 242, 189, 0.7);
  border-left: 1px solid rgba(56, 242, 189, 0.7);
}

.login-card-header {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  margin-bottom: 26px;
  text-align: center;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  margin-bottom: 18px;
}

.auth-logo img {
  width: auto;
  max-width: 190px;
  max-height: 66px;
  height: auto;
  object-fit: contain;
}

.login-card h1 {
  max-width: 360px;
  margin: 0 0 12px;
  color: #536987;
  font-size: clamp(1.02rem, 2.3vh, 1.18rem);
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
}

.login-card-header p {
  margin: 0;
  color: #6f84a0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.login-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.login-card .form-label {
  margin-bottom: 0;
  color: #334155;
  font-weight: 700;
}

.login-card .input-group {
  min-height: 49px;
  border: 1px solid var(--login-line);
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-card .input-group:focus-within {
  border-color: rgba(20, 200, 255, 0.85);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(20, 200, 255, 0.14);
}

.login-card .input-group-text,
.login-card .form-control,
.login-card #togglePassword {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.login-card .input-group-text {
  width: 48px;
  justify-content: center;
  color: var(--login-accent-2);
}

.login-card .form-control {
  min-height: 49px;
  color: #0f172a;
  font-size: 0.98rem;
}

.login-card .form-control::placeholder {
  color: #94a3b8;
}

.login-card #togglePassword {
  width: 48px;
  color: #64748b;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 51px;
  margin-top: 2px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #313641, #202530) !important;
  box-shadow: 0 14px 26px rgba(20, 26, 38, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover,
.login-submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(20, 26, 38, 0.3);
}

.alert-danger {
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
}

.client-logo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.client-logo img {
  width: auto;
  max-width: 230px;
  max-height: 72px;
  object-fit: contain;
}

.dataTables_wrapper .dataTables_filter {
  text-align: right !important;
}

.dataTables_wrapper .dataTables_filter label {
  display: inline-block;
}

@media (max-width: 575.98px) {
  .neural-chip,
  .line-three,
  .node-d,
  .flow,
  .ai-shape,
  .scan-beam {
    display: none;
  }

  .line-one,
  .line-two {
    width: 60vw;
    opacity: 0.3;
  }

  .login-shell {
    width: min(100% - 24px, 430px);
  }

  .login-card {
    padding: 22px 16px;
  }

  .auth-logo {
    min-height: 58px;
    margin-bottom: 12px;
  }

  .auth-logo img {
    max-width: 210px;
    max-height: 58px;
  }

  .login-card h1 {
    font-size: 1rem;
  }
}

@media (max-height: 620px) {
  .flow,
  .shape-three {
    display: none;
  }

  .login-card {
    padding: 18px 18px;
  }

  .login-card-header {
    margin-bottom: 16px;
  }

  .auth-logo {
    min-height: 48px;
    margin-bottom: 10px;
  }

  .auth-logo img {
    max-height: 48px;
  }

  .login-card h1 {
    font-size: 0.98rem;
  }

  .login-card-header p {
    font-size: 0.86rem;
  }

  .client-logo {
    margin-top: 18px;
    padding-top: 14px;
  }

  .client-logo img {
    max-height: 48px;
  }

  .login-form {
    gap: 12px;
  }
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 88px 44px, 88px 44px;
  }
}

@keyframes ambientMove {
  from {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }
}

@keyframes linePulse {
  0%,
  100% {
    opacity: 0.22;
    filter: blur(0);
  }
  50% {
    opacity: 0.62;
    filter: blur(0.5px);
  }
}

@keyframes nodeBlink {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.56;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(calc(-50% - 10px)) translateX(6px);
  }
}

@media (max-width: 1180px) and (min-width: 576px) {
  .flow-one {
    left: auto;
    right: 4%;
  }

  .flow-two {
    left: 4%;
  }

  .flow-three {
    display: none;
  }

  .flow {
    transform: scale(0.86);
  }
}

@keyframes flowFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes flowNodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.74;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes flowSignal {
  0%,
  20% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  85%,
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes shapeSpin {
  from {
    transform: rotate(0deg) translateY(0);
  }
  to {
    transform: rotate(360deg) translateY(-8px);
  }
}

@keyframes scanSweep {
  0%,
  100% {
    transform: translateX(-34vw) rotate(18deg);
    opacity: 0;
  }
  18%,
  72% {
    opacity: 0.48;
  }
  50% {
    transform: translateX(34vw) rotate(18deg);
  }
}

@keyframes panelGlow {
  from {
    opacity: 0.62;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes dotFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}
