.modern-login-page {
  min-height: 100vh;
  margin: 0;
  background: #f6f8ff;
  color: #182033;
  font-family: "Montserrat", sans-serif;
}

.modern-login-page .navbar {
  top: 0;
  right: 0;
  left: 0;
  padding-top: 22px;
  pointer-events: none;
}

.modern-login-page .navbar-brand,
.login-language-switcher {
  pointer-events: auto;
}

.modern-login-page .navbar-brand img {
  width: 178px;
  max-height: 54px;
  object-fit: contain;
}

.login-language-switcher {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 50;
}

.login-language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(38, 52, 94, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(28, 35, 90, 0.14);
  color: #27304a;
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(14px);
}

.login-language-switcher summary::-webkit-details-marker {
  display: none;
}

.login-language-switcher summary:after {
  content: "\f107";
  font-family: FontAwesome;
  color: #78849c;
  font-size: 12px;
}

.login-language-switcher[open] summary:after {
  transform: rotate(180deg);
}

.login-language-flag {
  font-size: 20px;
  line-height: 1;
}

.login-language-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-language-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(38, 52, 94, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(28, 35, 90, 0.18);
  backdrop-filter: blur(16px);
}

.login-language-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #4b5570;
  font-size: 13px;
  font-weight: 700;
}

.login-language-panel a:hover,
.login-language-panel a.active {
  background: #eef4ff;
  color: #4352de;
}

.modern-login-page .wrapper-full-page,
.modern-login-page .full-page,
.modern-login-page .content {
  min-height: 100vh;
}

.modern-login-page .content {
  display: flex;
  align-items: stretch;
  padding: 0;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.login-art-panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 8vw 72px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 102, 0.85), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(106, 214, 255, 0.75), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(255, 115, 188, 0.72), transparent 26%),
    linear-gradient(135deg, #2447f9 0%, #6d39f5 48%, #ff6aa2 100%);
}

.login-art-panel:before,
.login-art-panel:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-art-panel:before {
  width: 520px;
  height: 520px;
  left: -150px;
  bottom: -150px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.18);
}

.login-art-panel:after {
  width: 270px;
  height: 270px;
  right: 10%;
  top: 18%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(2px);
}

.login-art-panel .art-orb {
  position: absolute;
  width: 190px;
  height: 190px;
  right: 18%;
  bottom: 18%;
  border-radius: 42% 58% 64% 36%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18));
  box-shadow: 0 24px 70px rgba(34, 24, 90, 0.28);
  transform: rotate(-16deg);
}

.login-art-panel .art-card {
  position: absolute;
  right: 9%;
  bottom: 12%;
  width: 280px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(23, 18, 80, 0.22);
  backdrop-filter: blur(16px);
}

.login-art-panel .art-card-line {
  display: block;
  height: 10px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.login-art-panel .art-card-line:nth-child(2) {
  width: 74%;
  background: rgba(255, 255, 255, 0.48);
}

.login-art-panel .art-card-line:nth-child(3) {
  width: 52%;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.34);
}

.login-art-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-art-content h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.login-art-content p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.75;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 6vw 72px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 255, 0.94)),
    radial-gradient(circle at 15% 15%, rgba(67, 198, 255, 0.12), transparent 28%);
}

.modern-login-card {
  width: 100%;
  max-width: 470px;
  padding: 44px;
  border: 1px solid rgba(38, 52, 94, 0.08);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 80px rgba(45, 61, 122, 0.16);
  backdrop-filter: blur(18px);
}

.modern-login-card .card-header,
.modern-login-card .card-body,
.modern-login-card .card-footer {
  padding: 0;
  background: transparent;
}

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

.modern-login-card .header {
  margin: 0 0 10px;
  color: #182033;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.modern-login-card .login-subtitle {
  margin: 0;
  color: #7a849a;
  font-size: 14px;
  line-height: 1.6;
}

.modern-login-card .input-group {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid #e6eaf3;
  border-radius: 18px;
  background: #f9fbff;
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modern-login-card .input-group-prepend {
  flex: 0 0 58px;
  width: 58px;
  min-width: 58px;
  margin-right: 0;
}

.modern-login-card .input-group:focus-within {
  border-color: #6c63ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}

.modern-login-card .input-group-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  min-width: 58px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 18px 0 0 18px;
  background: transparent;
  color: #6c63ff;
  font-size: 18px;
  overflow: visible;
}

.modern-login-card .input-group-text i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  overflow: visible;
}

.modern-login-card .form-control {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding-left: 0;
  border: 0;
  border-radius: 0 18px 18px 0;
  background: transparent;
  color: #1e2638;
  font-size: 14px;
  box-shadow: none;
}

.modern-login-card .form-control::placeholder {
  color: #98a2b8;
}

.modern-login-card .form-control:-webkit-autofill,
.modern-login-card .form-control:-webkit-autofill:hover,
.modern-login-card .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #1e2638;
  box-shadow: 0 0 0 1000px #f9fbff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.modern-login-card .btn {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.modern-login-card .btn-success {
  background: linear-gradient(135deg, #28cf8d, #34a6ff);
  box-shadow: 0 14px 30px rgba(39, 188, 160, 0.26);
}

.modern-login-card .btn-info {
  background: #eef4ff;
  color: #3157d5;
}

.modern-login-card .btn:hover,
.modern-login-card .btn:focus {
  transform: translateY(-1px);
}

.login-links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #edf0f7;
  text-align: center;
  color: #a1a9ba;
  font-size: 13px;
}

.login-links a,
.modern-login-card .card-footer a {
  color: #5367d8;
  font-weight: 700;
}

.login-with-code {
  position: relative;
  margin: 10px auto 20px;
  color: #8d97ad;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-with-code:before,
.login-with-code:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 1px;
  background: #e6eaf3;
}

.login-with-code:before {
  left: 0;
}

.login-with-code:after {
  right: 0;
}

.modern-login-page .footer {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 3;
  padding: 0;
  background: transparent;
}

@media (max-width: 991px) {
  .modern-login-page .navbar-brand img {
    width: 150px;
  }

  .modern-login-page .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-art-panel {
    min-height: 420px;
    padding: 110px 32px 56px;
  }

  .login-form-panel {
    padding: 48px 22px 72px;
  }

  .login-art-panel .art-card {
    display: none;
  }
}

@media (max-width: 575px) {
  .modern-login-page .navbar {
    padding-top: 14px;
  }

  .login-language-switcher {
    top: 14px;
    right: 14px;
  }

  .login-language-switcher summary {
    height: 38px;
    padding: 0 11px;
  }

  .login-language-panel {
    min-width: 190px;
  }

  .login-art-panel {
    min-height: 360px;
    padding: 92px 22px 42px;
  }

  .login-art-content h1 {
    font-size: 38px;
  }

  .login-art-content p {
    font-size: 15px;
  }

  .modern-login-card {
    padding: 30px 22px;
    border-radius: 26px;
  }
}
