.custom-checkbox {
  opacity: 0;
  transition: opacity .3s ease-in-out;
}

body.loaded .custom-checkbox {
  opacity: 1;
}

.login-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: #edf3fc;
  font-family: "Nunito", sans-serif;
  color: #243858;
}

#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  background: linear-gradient(180deg, #2456a0 0%, #315fbd 24%, #416dcc 46%, #4e73df 64%, #6f91e2 72%, #9fb8e9 80%, #cbdaf2 89%, #edf4fc 96%, #f8fbff 100%);
  overflow: hidden;
}

.login-container {
  position: relative;
  z-index: 1;
}

#particles-js::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, .16), transparent 32%),
    linear-gradient(to bottom, rgba(36, 86, 160, .08), rgba(255, 255, 255, .04));
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

#particles-js > canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  cursor: pointer;
  color: #77869d;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #355fca;
  background: rgba(78, 115, 223, .1);
  outline: 0;
}

.rounded-soft {
  border-radius: 26px !important;
}

.login-stage {
  min-height: 100vh;
  padding: 2rem 0;
}

.login-stage > [class*="col-"] {
  transform: translateY(-5vh);
}

.login-shell {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(135deg, rgba(220, 233, 252, .32), rgba(255, 255, 255, .24));
  border: 1px solid rgba(255, 255, 255, .54) !important;
  box-shadow:
    0 24px 58px rgba(24, 55, 104, .17),
    inset 0 1px 0 rgba(255, 255, 255, .48) !important;
  -webkit-backdrop-filter: blur(24px) saturate(126%);
  backdrop-filter: blur(24px) saturate(126%);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.login-shell:hover {
  background: linear-gradient(135deg, rgba(213, 229, 252, .38), rgba(255, 255, 255, .28));
  border-color: rgba(190, 214, 255, .82) !important;
  box-shadow:
    0 24px 58px rgba(24, 55, 104, .18),
    0 0 42px rgba(78, 115, 223, .24),
    inset 0 1px 0 rgba(255, 255, 255, .58) !important;
}

.login-shell::before {
  content: "";
  position: absolute;
  top: -45%;
  left: 34%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .24), transparent 68%);
  pointer-events: none;
}

.login-shell > .card-body {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  border-radius: inherit !important;
}

.login-shell > .card-body > .row {
  min-height: 440px;
}

.login-page .bg-login-image {
  position: relative;
  isolation: isolate;
  background-color: rgba(42, 83, 185, .54);
  background-image: linear-gradient(145deg, rgba(35, 78, 174, .72), rgba(78, 115, 223, .54));
  background-position: center;
  background-size: cover;
  background-blend-mode: soft-light;
  border-right: 1px solid rgba(255, 255, 255, .28);
}

.login-page .bg-login-image::before {
  content: none;
}

.login-brand-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 230px;
  height: 190px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 18px rgba(15, 42, 94, .34));
}

.login-page .bg-login-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 255, 255, .24), transparent 34%),
    linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 46%, rgba(25, 65, 153, .12));
  pointer-events: none;
}

.login-form-panel {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(248, 251, 255, .74), rgba(233, 242, 253, .68));
  border-left: 1px solid rgba(255, 255, 255, .26);
}

.login-form-content {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 3rem !important;
}

.login-heading {
  margin: 0;
  color: #355fca;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.login-tagline {
  margin: .25rem 0 1.1rem;
  color: #75829a;
  font-size: .92rem;
}

.login-field {
  margin-bottom: .85rem;
}

.login-field-label {
  display: block;
  margin: 0 0 .42rem .15rem;
  color: #3e506b;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.login-input-wrap {
  position: relative;
}

.login-field-icon {
  position: absolute;
  top: 50%;
  left: .7rem;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #5270b9;
  font-size: .78rem;
  line-height: 1;
  background: linear-gradient(145deg, rgba(224, 234, 253, .92), rgba(244, 248, 255, .82));
  border: 1px solid rgba(78, 115, 223, .12);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-input-wrap:focus-within .login-field-icon {
  color: #315bc5;
  background: linear-gradient(145deg, rgba(215, 229, 255, .98), rgba(240, 246, 255, .92));
  border-color: rgba(78, 115, 223, .24);
  box-shadow: 0 4px 12px rgba(49, 91, 197, .14), inset 0 1px 0 rgba(255, 255, 255, .86);
  transform: translateY(-50%) scale(1.05);
}

.login-page form.user .form-control-user {
  min-height: 50px;
  padding: .88rem 3rem .88rem 3.25rem;
  color: #243858;
  font-size: .86rem;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(45, 83, 157, .18);
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.login-page form.user .form-control-user::placeholder {
  color: #a0aaba;
  opacity: 1;
}

.login-page form.user .form-control-user.is-invalid {
  background-image: none;
}

.login-page form.user .invalid-feedback {
  margin: .35rem 0 0 .15rem;
}

.login-page form.user .form-control-user:focus {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(78, 115, 223, .66);
  box-shadow: 0 0 0 .2rem rgba(78, 115, 223, .13);
}

.login-page form.user .btn-user {
  padding: .82rem 1rem;
  background: linear-gradient(90deg, #315bc5, #4e73df);
  border-color: rgba(49, 91, 197, .9);
  box-shadow: 0 10px 22px rgba(49, 91, 197, .2);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.login-page form.user .btn-user:hover,
.login-page form.user .btn-user:focus {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(49, 91, 197, .26);
}

.login-page .custom-control-label,
.login-page .small {
  color: #687791;
}

.login-page hr {
  margin-top: .8rem;
  margin-bottom: .8rem;
  border-color: rgba(69, 94, 139, .14);
}

.login-page form.user > .form-group:not(.login-field) {
  margin-bottom: .8rem;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .login-shell {
    background: #dce8fa;
  }
}

@media (max-width: 991.98px) {
  .login-container {
    max-width: none;
    padding: 0;
  }

  .login-stage {
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }

  .login-stage > [class*="col-"] {
    padding: 0;
    transform: none;
  }

  .login-shell {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 !important;
    padding: 0;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .login-shell > .card-body,
  .login-shell > .card-body > .row,
  .login-form-panel {
    min-height: 100vh;
    min-height: 100svh;
    border-radius: 0 !important;
  }

  .login-shell > .card-body {
    box-shadow: none;
  }

  .login-shell::before {
    content: none;
  }

  .login-shell:hover {
    background: transparent;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .login-shell > .card-body > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .login-form-panel {
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(1rem, 4vw, 2rem);
    background: transparent;
    border-left: 0;
  }

  .login-form-content {
    --auth-mobile-brand-margin-top: -2.5rem;
    --auth-mobile-brand-margin-inline: -2rem;
    --auth-mobile-brand-padding-inline: 2rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    padding: 2.5rem 2rem !important;
    background:
      radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .56), transparent 38%),
      linear-gradient(145deg, rgba(246, 250, 255, .78), rgba(219, 233, 252, .68));
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: 26px;
    box-shadow:
      0 22px 48px rgba(23, 52, 101, .18),
      inset 0 1px 0 rgba(255, 255, 255, .64);
    -webkit-backdrop-filter: blur(22px) saturate(126%);
    backdrop-filter: blur(22px) saturate(126%);
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }

  .login-form-content:focus-within {
    border-color: rgba(190, 214, 255, .92);
    box-shadow:
      0 22px 48px rgba(23, 52, 101, .19),
      0 0 36px rgba(78, 115, 223, .22),
      inset 0 1px 0 rgba(255, 255, 255, .7);
  }

  .login-form-heading {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) and (max-width: 991.98px) {
  .login-form-content:hover {
    border-color: rgba(190, 214, 255, .92);
    box-shadow:
      0 22px 48px rgba(23, 52, 101, .19),
      0 0 36px rgba(78, 115, 223, .22),
      inset 0 1px 0 rgba(255, 255, 255, .7);
  }
}

@media (max-width: 575.98px) {
  .login-form-panel {
    padding: .875rem;
  }

  .login-form-content {
    --auth-mobile-brand-margin-top: -1.75rem;
    --auth-mobile-brand-margin-inline: -1.25rem;
    --auth-mobile-brand-padding-inline: 1.25rem;
    padding: 1.75rem 1.25rem !important;
    border-radius: 24px;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (max-width: 991.98px) {
    .login-form-content {
      background: #e8f0fc;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-shell,
  .login-page form.user .btn-user {
    transition: none;
  }

  .login-page form.user .btn-user:hover,
  .login-page form.user .btn-user:focus {
    transform: none;
  }
}
