.login-section {
  padding: 22px 18px;
  max-width: 450px;
  width: 450px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.1)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}

.login-bg-logo {
  position: fixed;
  right: 18px;
  bottom: 14px;
  width: 210px;
  max-width: min(52vw, 250px);
  opacity: 0.95;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4));
}

.login-bg-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.bl-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #050510;
}

.bl-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050510;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bl-pattern {
  display: grid;
  grid-template-columns: repeat(var(--bl-cols, 32), 37.5px);
  grid-auto-rows: 38px;
  opacity: 0.9;
  filter: drop-shadow(0 30px 90px rgba(0, 0, 0, 0.55));
}

.bl-cell {
  width: 37.5px;
  height: 38px;
  position: relative;
  box-sizing: border-box;
  border: 1px solid rgba(120, 120, 200, 0.45);
}

.bl-cell::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(140, 140, 255, 0.4);
}

.bl-cell span {
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(160, 160, 255, 0.45);
}

.bl-cell.active {
  border-color: rgb(95, 135, 177);
}

.bl-cell.active::after {
  box-shadow: 0 0 10px rgba(95, 135, 177);
  border-color: rgb(95, 135, 177);
}

.bl-cell.active span {
  box-shadow: 0 0 10px rgb(95, 135, 177);
  border-color: rgb(95, 135, 177);
}

.login-brand {
  text-align: center;
  padding: 6px 8px 10px;
}

.login-brand__mark {
  direction: ltr;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.login-brand__x {
  color: #8f3bb8;
  transform: translateY(1px);
  text-shadow: 0 0 18px rgba(143, 59, 184, 0.45);
}

.login-brand__welcome {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.login-section::before,
.login-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: opacity 2s ease;
}

.login-section::before {
  background: none;
  opacity: 0;
}

.login-section::after {
  background: none;
  opacity: 0;
  animation: none;
}

.admin-icon {
  width: 35px;
  height: auto;
  color: #c1c1c1;
  transition: all 0.2s;
}

.login-section:hover .admin-icon {
  transform: scale(1.1);
  color:#fff;
}

.login-section:hover {
  border: 1px solid rgba(255, 218, 23, 0.55);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    0 12px 30px rgba(255, 218, 23, 0.12);
}

.login-section__logo {
  width: 80px;
}

.form-control__group {
  position: relative;
}

.form-control__label {
  position: absolute;
  top: -30px;
  right: 15px;
  font-size: 14px;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s linear;
}

.form-control__input,
.form-control__input:hover,
.form-control__input:-webkit-autofill {
  border: 1px solid transparent;
  width: 100%;
  outline: 0;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.55) !important;
  font-size: 14px;
  border-radius: 12px;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  transition: all 0.5s;
}

.form-control__input:focus,
.form-control__input:-webkit-autofill:focus {
  border: 1px solid rgba(255, 218, 23, 0.6) !important;
  box-shadow: 0 0 10px rgba(255, 218, 23, 0.2) !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

.form-control__input:placeholder-shown + .form-control__label {
  top: 10px;
  visibility: hidden;
}

.form-control__group:not(:last-child) {
  margin-bottom: 35px;
}

.show-password {
  position: absolute;
  top: 8px;
  left: 10px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.85;
}

.show-password:hover {
  color: var(--bs-secondary, #6c757d);
  opacity: 1;
}

.login-side-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.login-side-modal {
  width: min(100%, 360px);
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(18, 18, 32, 0.96), rgba(8, 8, 18, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
}

.login-side-modal__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.login-side-modal__hint {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.login-side-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.login-side-modal__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.login-side-modal__item:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.login-side-modal__item.is-active {
  border-color: rgba(167, 139, 250, 0.85);
  background: rgba(99, 102, 241, 0.18);
}

.login-side-modal__radio {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  position: relative;
}

.login-side-modal__item.is-active .login-side-modal__radio {
  border-color: #a78bfa;
}

.login-side-modal__item.is-active .login-side-modal__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: #a78bfa;
}

.login-side-modal__label {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}

.login-side-modal__submit {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.55);
  background: rgba(99, 102, 241, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.login-side-modal__submit:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.34);
}

.login-side-modal__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@keyframes fadeGradient {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

@media only screen and (max-width: 576px) {
  .login-section {
    max-width: 340px;
    width: 340px;
    padding: 18px 14px;
  }

  .login-brand__mark {
    font-size: 20px;
    letter-spacing: 0.2em;
  }
}
