:root {
  --efl-night: #10161d;
  --efl-navy: #24245c;
  --efl-blue: #1489f5;
  --efl-cyan: #42b5dd;
  --efl-cyan-soft: #bdebf9;
  --efl-ice: #eef5f7;
  --efl-line: #c9d5dc;
  --efl-text: #242b38;
  --efl-muted: #77818d;
  --efl-white: #ffffff;
}

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

body.efl-login-body {
  margin: 0;
  overflow: hidden;
  background: #edf3f5;
  color: var(--efl-text);
  font-family: "Poppins", "Inter", Arial, sans-serif;
}

.efl-login-shell {
   position: relative;
   min-height: 100vh;
   isolation: isolate;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: flex-start;
   padding-left: 5%;
   padding: 40px 24px;
   padding-left: 12%;
   background:
     linear-gradient(90deg, rgba(244,248,249,.07), rgba(235,244,247,.02)),
     url('../images/efl-login-bg.png') center center / cover no-repeat;
}

.efl-login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.66), rgba(255,255,255,0) 28%),
    linear-gradient(115deg, rgba(255,255,255,.08), rgba(66,181,221,.035) 52%, rgba(20,137,245,.035));
  pointer-events: none;
}

.efl-ai-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .24;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20,137,245,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,137,245,.11) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 66%);
  animation: efl-grid-drift 18s linear infinite;
}

.efl-scan-line {
  position: absolute;
  z-index: -1;
  top: -10%;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: .52;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 6%, rgba(66,181,221,.1) 22%, rgba(66,181,221,.9) 50%, rgba(20,137,245,.12) 78%, transparent 94%);
  box-shadow: 0 0 22px rgba(66,181,221,.68);
  animation: efl-scan 7s ease-in-out infinite;
}

.efl-neural-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.efl-neural-field span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(20,137,245,.58);
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  box-shadow: 0 0 0 5px rgba(66,181,221,.06), 0 0 18px rgba(20,137,245,.28);
  animation: efl-node-pulse 3.4s ease-in-out infinite;
}

.efl-neural-field span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: clamp(60px, 9vw, 170px);
  height: 1px;
  background: linear-gradient(90deg, rgba(66,181,221,.42), transparent);
  transform: translateY(-50%) rotate(var(--line-angle, 0deg));
  transform-origin: left center;
}

.efl-neural-field span:nth-child(1) { left: 10%; top: 18%; --line-angle: 18deg; animation-delay: -.6s; }
.efl-neural-field span:nth-child(2) { left: 22%; top: 77%; --line-angle: -18deg; animation-delay: -1.6s; }
.efl-neural-field span:nth-child(3) { right: 15%; top: 19%; --line-angle: 166deg; animation-delay: -2.3s; }
.efl-neural-field span:nth-child(4) { right: 10%; top: 72%; --line-angle: 198deg; animation-delay: -1.1s; }
.efl-neural-field span:nth-child(5) { left: 45%; top: 9%; --line-angle: 90deg; animation-delay: -2.8s; }
.efl-neural-field span:nth-child(6) { left: 52%; bottom: 7%; --line-angle: -90deg; animation-delay: -.2s; }

.efl-login-card {
  position: relative;
  width: min(430px, calc(100vw - 38px));
  min-height: 530px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 24px;
  padding: 42px 38px 34px;
  background: rgba(255,255,255,.965);
  box-shadow:
    0 30px 80px rgba(17,33,44,.18),
    0 8px 28px rgba(32,60,76,.12),
    inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: efl-card-enter .85s cubic-bezier(.2,.8,.2,1) both, efl-card-float 6s ease-in-out 1s infinite;
}

.efl-login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(66,181,221,.8), rgba(255,255,255,.18) 38%, rgba(36,36,92,.44) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .7;
}

.efl-card-glow {
  position: absolute;
  inset: -42px;
  z-index: -2;
  border-radius: 40px;
  background: radial-gradient(circle at 50% 48%, rgba(66,181,221,.16), rgba(20,137,245,.05) 36%, transparent 68%);
  filter: blur(18px);
  animation: efl-glow 4s ease-in-out infinite;
  pointer-events: none;
}

.efl-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -74px auto 28px;
}

.efl-brand-badge {
  width: 225px;
  height: 76px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(66,181,221,.24);
  box-shadow: 0 12px 34px rgba(20,137,245,.14), 0 2px 10px rgba(22,40,55,.07);
  overflow: hidden;
}

.efl-brand-badge::after {
  content: "";
  position: absolute;
  width: 130%;
  height: 26px;
  left: -15%;
  top: -8px;
  background: linear-gradient(90deg, transparent, rgba(66,181,221,.18), transparent);
  transform: rotate(-8deg);
  animation: efl-logo-sweep 4.8s ease-in-out infinite;
}

.efl-brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  letter-spacing: -.055em;
  color: var(--efl-navy);
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
}

.efl-brand-mark strong {
  color: var(--efl-blue);
  font-size: 28px;
  font-style: italic;
}

.efl-brand-name {
  margin-top: 12px;
  color: var(--efl-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.efl-ai-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: #60707a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.efl-ai-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23c483;
  box-shadow: 0 0 0 0 rgba(35,196,131,.45);
  animation: efl-status-pulse 1.9s infinite;
}

.efl-login-title {
  margin: 0 0 8px;
  color: var(--efl-text);
  text-align: center;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.03em;
}

.efl-login-copy {
  max-width: 310px;
  margin: 0 auto 28px;
  color: #7b8791;
  text-align: center;
  font-size: 12px;
  line-height: 1.65;
}

.efl-field {
  position: relative;
  margin-bottom: 18px;
}

.efl-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #87949f;
  font-size: 15px;
  transition: color .25s ease, transform .25s ease;
}

.efl-field .form-control {
  width: 100%;
  height: 52px;
  border: 1px solid #d4dee4 !important;
  border-radius: 12px !important;
  padding: 0 48px 0 44px !important;
  background: rgba(248,251,252,.84) !important;
  color: #26323c !important;
  font-size: 13px;
  outline: none !important;
  box-shadow: inset 0 1px 1px rgba(20,31,41,.02) !important;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}

.efl-field .form-control::placeholder {
  color: #a2adb5;
}

.efl-field .form-control:focus {
  border-color: var(--efl-cyan) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(66,181,221,.12), 0 9px 22px rgba(20,137,245,.08) !important;
  transform: translateY(-1px);
}

.efl-field:focus-within .efl-field-icon {
  color: var(--efl-blue);
  transform: translateY(-50%) scale(1.08);
}

.efl-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #687581;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.efl-password-toggle:hover {
  color: var(--efl-blue);
  background: rgba(20,137,245,.07);
}

.efl-login-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 2px 25px;
  color: #7a8790;
  font-size: 11px;
}

.efl-login-help a {
  color: var(--efl-navy);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(36,36,92,.28);
}

.efl-login-btn {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 50px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  background: linear-gradient(100deg, var(--efl-navy), #313071 46%, #1e6ca6 100%);
  box-shadow: 0 13px 28px rgba(36,36,92,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.efl-login-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg);
  animation: efl-button-shine 3.8s ease-in-out infinite;
}

.efl-login-btn:hover,
.efl-login-btn:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(36,36,92,.29), 0 0 0 4px rgba(66,181,221,.1);
}

.efl-login-btn:active {
  transform: translateY(0);
}

.efl-login-btn span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.efl-login-btn i {
  transition: transform .25s ease;
}

.efl-login-btn:hover i {
  transform: translateX(4px);
}

.efl-login-footer {
  margin-top: 24px;
  text-align: center;
  color: #8d989f;
  font-size: 10px;
  letter-spacing: .09em;
  
}

.efl-login-footer strong {
  color: var(--efl-blue);
  font-weight: 700;
}

.efl-corner-label {
  position: absolute;
  right: 7vw;
  top: 18vh;
  max-width: 270px;
  padding: 16px 22px;
  border: 1px solid rgba(66,181,221,.46);
  color: #29305f;
  background: rgba(240,247,249,.94);
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
  animation: efl-label-float 5s ease-in-out infinite;
}

.efl-corner-label::before,
.efl-corner-label::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 1px;
  background: var(--efl-cyan);
  opacity: .75;
}

.efl-corner-label::before { left: -42px; top: 50%; }
.efl-corner-label::after { right: -42px; bottom: 24%; }

@keyframes efl-grid-drift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(72px,72px,0); }
}

@keyframes efl-scan {
  0%, 10% { top: -6%; opacity: 0; }
  22% { opacity: .55; }
  75% { opacity: .42; }
  100% { top: 106%; opacity: 0; }
}

@keyframes efl-node-pulse {
  0%, 100% { transform: scale(.9); opacity: .45; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes efl-card-enter {
  from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes efl-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes efl-glow {
  0%, 100% { opacity: .55; transform: scale(.98); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes efl-logo-sweep {
  0%, 64% { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
  72% { opacity: 1; }
  92%, 100% { transform: translateX(120%) rotate(-8deg); opacity: 0; }
}

@keyframes efl-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(35,196,131,.42); }
  70% { box-shadow: 0 0 0 7px rgba(35,196,131,0); }
  100% { box-shadow: 0 0 0 0 rgba(35,196,131,0); }
}

@keyframes efl-button-shine {
  0%, 50% { left: -65%; }
  72%, 100% { left: 125%; }
}

@keyframes efl-label-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1100px) {
  .efl-login-shell {
    background-position: center center;
  }
  .efl-corner-label { display: none; }
}

@media (max-width: 760px) {
  body.efl-login-body { overflow: auto; }
  .efl-login-shell {
    padding: 72px 18px 34px;
    background:
      radial-gradient(circle at 12% 12%, rgba(66,181,221,.18), transparent 28%),
      radial-gradient(circle at 90% 85%, rgba(20,137,245,.12), transparent 32%),
      linear-gradient(145deg, #f7fbfc 0%, #e8f1f4 100%);
  }
  .efl-login-card {
    min-height: auto;
    padding: 40px 26px 30px;
    border-radius: 20px;
  }
  .efl-brand { margin-top: -72px; }
  .efl-login-title { font-size: 22px; }
  .efl-ai-grid { opacity: .3; mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
