body:has(.container-login) {
  margin: 0 !important;
  overflow: hidden;
  background: #070b16 !important;
}

.container-login {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0b4db8 url("../img/wallpaper442.jpg") center / cover no-repeat;
  color: #e8eefc;
  font-family: "Wix Madefor Text", "Segoe UI", sans-serif;
  overflow: auto;
}

.container-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 32, 0.9);
  pointer-events: none;
  z-index: 0;
}

.login-hero,
.login-side {
  position: relative;
  z-index: 1;
  min-height: 100%;
}

.login-hero {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
  overflow: hidden;
}

.login-brand,
.login-hero h1,
.login-lead,
.login-note,
.login-support {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.login-brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
  flex: 0 0 58px;
}

.login-brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.login-brand-mark i {
  color: #2563eb;
  font-size: 22px;
}

.login-brand strong {
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.login-hero h1 {
  margin: 0 0 18px;
  max-width: 560px;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 700;
  color: #f8fafc;
}

.login-hero h1 span {
  color: #60a5fa;
}

.login-lead {
  max-width: 460px;
  margin: 0 0 28px;
  color: #b7c3d7;
  font-size: 15px;
  line-height: 1.65;
}

.login-note {
  max-width: 460px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(8, 15, 32, 0.45);
}

.login-note p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #d5deee;
  font-size: 13.5px;
  line-height: 1.45;
}

.login-note p + p {
  margin-top: 10px;
}

.login-note i {
  margin-top: 2px;
  color: #93c5fd;
}

.login-support {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(191, 219, 254, 0.45);
  border-radius: 999px;
  color: #e8eefc !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-support i {
  color: #25d366;
  font-size: 16px;
}

.login-support:hover,
.login-support:focus {
  background: rgba(37, 99, 235, 0.28);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.login-side {
  flex: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: rgba(8, 14, 30, 0.88);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.login-card-main {
  padding: 36px 32px 22px;
}

.login-card-foot {
  padding: 26px 32px 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.42);
  text-align: center;
}

.login-card-foot img {
  width: 156px;
  height: auto;
  mix-blend-mode: screen;
}

.login-card h2 {
  margin: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #f8fafc;
}

.login-sub {
  margin: 8px 0 28px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.login-field {
  position: relative;
  display: block;
  margin: 0 0 14px;
}

.login-field > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.login-field input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 44px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 15px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input::placeholder {
  color: #8b9bb3;
}

.login-field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.login-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.login-eye:hover,
.login-eye:focus {
  color: #e2e8f0;
  outline: none;
}

.login-button {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.login-button:hover,
.login-button:focus {
  filter: brightness(1.06);
  transform: translateY(-1px);
  outline: none;
}

.login-alert {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  text-align: center;
  font-size: 13px;
}


@media (max-width: 980px) {
  body:has(.container-login) {
    overflow: auto;
  }

  .container-login {
    position: relative;
    min-height: 100dvh;
    flex-direction: column;
  }

  .login-hero {
    flex: none;
    align-items: center;
    text-align: center;
    padding: 32px 24px 6px;
  }

  .login-hero h1 {
    max-width: 320px;
    margin: 0 auto 18px;
    font-size: 30px;
    line-height: 1.15;
    text-align: center;
  }

  .login-lead,
  .login-note {
    display: none;
  }

  .login-brand {
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
  }

  .login-brand strong {
    font-size: 15px;
    letter-spacing: 0.06em;
  }

  .login-support {
    align-self: center;
    margin: 0 auto 20px;
  }

  .login-side {
    flex: none;
    padding: 12px 16px 32px;
  }

  .login-card-main {
    padding: 28px 20px 18px;
  }

  .login-card-foot {
    padding: 20px 20px 22px;
  }

  .login-card h2 {
    font-size: 26px;
  }
}
