.nova-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #f3f7ff;
}

.nova-login-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(56px, 8vw, 72px);
  padding: 10px clamp(16px, 3.2vw, 40px);
  color: #fff;
  background:
    radial-gradient(circle at 72% -80%, rgba(120, 200, 255, .72), transparent 25rem),
    linear-gradient(135deg, #071b45 0%, #0d2f6d 58%, #1956c5 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 28px rgba(7, 27, 69, .18);
}

.nova-login-brand {
  display: inline-flex;
  align-items: center;
  max-width: min(280px, 62vw);
  text-decoration: none;
}

.nova-login-brand img {
  display: block;
  height: clamp(28px, 4.2vw, 44px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.nova-login-brand-text {
  color: #fff;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}

.nova-login-brand:hover {
  text-decoration: none;
  opacity: .92;
}

.nova-login-top-home {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease;
}

.nova-login-top-home:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .42);
}

.nova-login-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nova-login-lang {
  position: relative;
}

.nova-login-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.nova-login-lang-btn img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.nova-login-lang-btn i {
  font-size: 14px;
  opacity: .8;
}

.nova-login-lang.is-open .nova-login-lang-btn,
.nova-login-lang-btn:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .42);
}

.nova-login-lang-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: #0d2f6d;
  box-shadow: 0 18px 40px rgba(7, 27, 69, .28);
}

.nova-login-lang-menu[hidden] {
  display: none !important;
}

.nova-login-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, .92);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nova-login-lang-item img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.nova-login-lang-item:hover,
.nova-login-lang-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  text-decoration: none;
}

.nova-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  background: #f3f7ff;
}

.nova-login-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3.6vw, 52px);
  background: #071b45;
  isolation: isolate;
  min-height: 100%;
}

.nova-login-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.nova-login-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  transform: scale(1.06);
  animation: novaHeroZoom 18s ease-in-out infinite alternate;
}

.nova-login-hero-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(3, 16, 44, .72) 0%, rgba(5, 24, 62, .38) 36%, rgba(5, 24, 62, .12) 68%, rgba(5, 24, 62, .08) 100%),
    linear-gradient(180deg, rgba(3, 16, 44, .28) 0%, rgba(3, 16, 44, 0) 34%, rgba(3, 16, 44, .55) 100%);
  pointer-events: none;
}

.nova-login-hero-glow {
  position: absolute;
  inset: auto -10% -20% 20%;
  height: 55%;
  z-index: 1;
  background:
    radial-gradient(ellipse at 40% 40%, rgba(80, 170, 255, .34), transparent 58%),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .16), transparent 36%);
  pointer-events: none;
  animation: novaGlow 7s ease-in-out infinite alternate;
}

.nova-login-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 90%;
  display: grid;
  gap: 28px;
  animation: novaRise .55s ease both;
}

.nova-login-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.nova-login-hero-copy p {
  margin: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.65;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.nova-login-panel {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 32px 20px;
  overflow: auto;
}

.nova-login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #d5e1f7;
  border-radius: 18px;
  box-shadow: 0 18px 52px rgba(25, 79, 174, 0.1);
  padding: 28px;
  animation: novaRise .55s ease .05s both;
}

.nova-login-card--wide {
  width: min(460px, 100%);
}

.nova-login-card h2 {
  margin: 0;
  font-size: 24px;
  color: #071b45;
}

.nova-login-sub {
  margin: 8px 0 20px;
  color: #66758e;
}

.nova-login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.nova-login-tab {
  flex: 1;
  border: 1px solid #d5e1f7;
  background: #e9f1ff;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font: inherit;
  color: #173b78;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nova-login-tab.is-active {
  background: linear-gradient(135deg, #2f6bff, #194fd3);
  border-color: transparent;
  color: #fff;
}

.nova-login-form { display: none; }
.nova-login-form.is-active { display: grid; gap: 12px; }

.nova-login-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #66758e;
}

.nova-login-form .form-control,
.nova-login-form select.form-control,
.nova-login-form textarea.form-control {
  width: 100%;
  border: 1px solid #d5e1f7;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #071b45;
  background: #fff;
  height: auto;
  min-height: 42px;
}

.nova-login-form textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.nova-login-form .form-control:focus,
.nova-login-form select.form-control:focus,
.nova-login-form textarea.form-control:focus {
  outline: 0;
  border-color: #2f6bff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.nova-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.nova-phone-row {
  grid-template-columns: minmax(118px, 34%) 1fr;
}

.nova-phone-code {
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 13px;
}

.nova-code-row .btn,
.nova-login-form .btn-outline-primary {
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid #b7c9ef;
  background: #f5f9ff;
  color: #194fd3;
  padding: 0 14px;
  min-height: 42px;
}

.nova-code-row .btn:hover,
.nova-login-form .btn-outline-primary:hover {
  background: #e9f1ff;
  border-color: #2f6bff;
  color: #194fd3;
}

.nova-login-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  background: linear-gradient(135deg, #2f6bff, #194fd3);
  border: 0;
  border-radius: 10px;
  min-height: 46px;
  font-weight: 600;
}

.nova-login-submit:hover,
.nova-login-submit:focus {
  background: linear-gradient(135deg, #3a74ff, #1d57e0);
  border: 0;
}

.allow_login_code_captcha {
  display: none;
}

.nova-login-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  font-size: 13px;
}

.nova-login-switch-row--end {
  justify-content: flex-end;
}

.nova-login-switch {
  border: 0;
  background: transparent;
  padding: 0;
  color: #2f6bff;
  cursor: pointer;
  font: inherit;
}

.nova-login-switch:hover {
  text-decoration: underline;
}

.nova-captcha-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #66758e;
}

.nova-captcha-row {
  grid-template-columns: 1fr auto;
}

.nova-captcha-img {
  width: 120px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d5e1f7;
  object-fit: cover;
  cursor: pointer;
  background: #f5f9ff;
}

.nova-login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: #66758e;
}

.nova-login-links--center {
  justify-content: center;
}

.nova-login-links a { color: #2f6bff; text-decoration: none; }
.nova-login-links a:hover { text-decoration: underline; }

.nova-login-agree {
  margin-top: 16px;
  font-size: 13px;
  color: #66758e;
}

.nova-login-agree label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.nova-login-agree input {
  margin-top: 3px;
}

.nova-login-agree a {
  color: #2f6bff;
}

.nova-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #071b45;
}

.nova-oauth {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #d5e1f7;
  text-align: center;
  color: #66758e;
}

.nova-oauth ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 0;
  padding: 0;
}

.nova-login-copy,
.nova-login-filings {
  margin-top: 16px;
  text-align: center;
  color: #66758e;
  font-size: 12px;
}

.nova-login-filings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

.nova-body .nova-login .alert,
.nova-body .nova-login .notifications {
  width: min(460px, calc(100% - 40px));
  margin: 16px auto 0;
}

@keyframes novaRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes novaHeroZoom {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes novaGlow {
  from { opacity: .72; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(-2%, -3%, 0); }
}

@media (max-width: 900px) {
  .nova-login {
    grid-template-columns: 1fr;
  }

  .nova-login-topbar {
    min-height: 56px;
    padding: 8px 16px;
  }

  .nova-login-brand {
    max-width: min(200px, 58vw);
  }

  .nova-login-brand img {
    height: clamp(24px, 7vw, 34px);
  }

  .nova-login-hero {
    min-height: 220px;
  }

  .nova-login-hero-media img {
    animation: none;
    transform: scale(1.08);
    object-position: center 40%;
  }

  .nova-login-hero-copy h1 {
    font-size: 28px;
  }

  .nova-login-hero-inner {
    gap: 18px;
  }

  .nova-login-panel {
    padding: 20px 16px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nova-login-hero-media img,
  .nova-login-hero-glow,
  .nova-login-hero-inner,
  .nova-login-card {
    animation: none !important;
  }
}
