.login-page {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  box-sizing: border-box;
  color: #f8fafc;
  background:
    radial-gradient(circle at 16% 22%, rgba(37, 99, 235, 0.1), transparent 30rem),
    radial-gradient(circle at 86% 76%, rgba(14, 116, 144, 0.07), transparent 32rem),
    linear-gradient(145deg, #020611 0%, #050c18 52%, #07111f 100%);
}

.login-page > .navbar,
.login-page #globalConfirmModal {
  display: none;
}

.login-page #main {
  width: min(1180px, calc(100vw - 48px));
  min-width: 0;
  max-width: none;
  min-height: 0;
  padding: 0 !important;
}

.login-page #main > .row,
.login-page #main main {
  min-height: 0;
  margin: 0;
  padding: 0;
}

.login-page #main main {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 100%;
}

.login-shell {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 48px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.login-shell::before,
.login-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(1px);
}

.login-shell::before {
  top: -180px;
  left: -140px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(59, 130, 246, 0.06);
  box-shadow:
    0 0 0 80px rgba(59, 130, 246, 0.016),
    0 0 0 160px rgba(59, 130, 246, 0.01);
}

.login-shell::after {
  right: -170px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.11), transparent 68%);
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.login-brand {
  display: flex;
  align-items: center;
  min-height: 0;
  margin-bottom: 18px;
}

.login-brand img {
  width: 152px;
  height: auto;
  display: block;
  object-fit: contain;
}

.login-main {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  min-width: 0;
}

.login-card,
.login-hero {
  height: 520px;
  min-height: 500px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  padding: 36px;
  background:
    linear-gradient(145deg, rgba(18, 33, 54, 0.96), rgba(6, 14, 27, 0.98));
  border-color: rgba(96, 165, 250, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-card-accent {
  position: absolute;
  top: 0;
  left: 44px;
  right: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.7);
}

.login-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.login-card-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 13px;
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.2);
}

.login-card-heading h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 30px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.login-card-heading p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field label {
  color: #dbe5f3;
  font-size: 0.84rem;
  font-weight: 750;
}

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

.login-input-wrap > i {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  color: #64748b;
  font-size: 0.92rem;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 180ms ease;
}

.login-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 48px;
  color: #f8fafc;
  font-size: 15px;
  outline: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  background: rgba(2, 8, 23, 0.64);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.login-input-wrap input::placeholder {
  color: #64748b;
}

.login-input-wrap:focus-within > i {
  color: #60a5fa;
}

.login-input-wrap input:focus {
  border-color: rgba(96, 165, 250, 0.82);
  background: rgba(2, 8, 23, 0.82);
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.14),
    0 10px 24px rgba(2, 8, 23, 0.18);
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #94a3b8;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: transparent;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.12);
  outline: none;
}

.login-help {
  margin-top: -5px;
  text-align: right;
}

.login-help a {
  color: #60a5fa;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.login-help a:hover,
.login-help a:focus-visible {
  color: #bfdbfe;
}

.login-submit {
  width: 100%;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: 13px;
  background: linear-gradient(180deg, #3388ff, #1465dc);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.26);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  color: #ffffff;
  filter: brightness(1.06);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(29, 78, 216, 0.36);
}

.login-submit:active {
  transform: translateY(0);
}

.login-access-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
  color: #718096;
  font-size: 0.79rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.login-access-note i {
  color: #60a5fa;
}

.login-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
  background: #050b15;
}

.login-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.72) contrast(1.04) brightness(0.5);
  transform: scale(1.015);
  transition: transform 900ms ease;
}

.login-hero:hover .login-hero-image {
  transform: scale(1.027);
}

.login-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.44) 0%, rgba(2, 6, 23, 0.64) 42%, rgba(2, 6, 23, 0.99) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.24) 72%),
    radial-gradient(circle at 78% 26%, rgba(59, 130, 246, 0.05), transparent 22rem);
}

.login-hero-content {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 1;
  max-width: 540px;
}

.login-hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  margin-bottom: 13px;
  color: rgba(191, 219, 254, 0.82);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

.login-hero-content h2 {
  max-width: 520px;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.login-hero-content p {
  max-width: 540px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.5;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.54);
}

.login-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.login-hero-badge {
  height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 720;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.login-hero-badge i {
  color: #60a5fa;
}

.login-footer {
  color: #64748b;
  font-size: 12px;
  text-align: center;
  margin-top: 18px;
  opacity: 0.55;
}

.login-card,
.login-hero {
  opacity: 0;
  transform: translateY(18px);
}

.login-brand,
.login-footer {
  opacity: 0;
}

.login-animate .login-brand,
.login-animate .login-footer {
  opacity: 1;
  transition: opacity 500ms ease;
}

.login-animate .login-card,
.login-animate .login-hero {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.login-animate .login-hero {
  transition-delay: 90ms;
}

@media (max-width: 1100px) and (min-width: 981px) {
  .login-main {
    grid-template-columns: 440px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .login-page {
    height: auto;
    min-height: 100vh;
    padding: 28px 20px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-page #main {
    width: min(520px, calc(100vw - 40px));
  }

  .login-shell {
    max-width: 520px;
    max-height: none;
  }

  .login-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .login-card {
    height: auto;
    min-height: 520px;
  }

  .login-hero {
    height: 340px;
    min-height: 340px;
  }

  .login-hero-content h2 {
    font-size: clamp(32px, 7vw, 40px);
  }
}

@media (max-width: 600px) {
  .login-page {
    padding: 22px 14px;
  }

  .login-page #main {
    width: calc(100vw - 28px);
  }

  .login-brand {
    margin-bottom: 20px;
  }

  .login-brand img {
    width: 150px;
  }

  .login-card {
    height: auto;
    min-height: 520px;
    padding: 28px 22px;
    border-radius: 20px;
  }

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

  .login-card-icon {
    width: 42px;
    height: 42px;
  }

  .login-card-heading h1 {
    font-size: 28px;
  }

  .login-hero {
    height: 300px;
    min-height: 300px;
    border-radius: 20px;
  }

  .login-hero-content {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .login-hero-content h2 {
    font-size: 30px;
  }

  .login-hero-content p {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .login-hero-badges {
    display: none;
  }

  .login-access-note {
    align-items: flex-start;
  }

  .login-footer {
    margin-top: 20px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .login-brand,
  .login-card,
  .login-hero,
  .login-footer {
    opacity: 1 !important;
    transform: none !important;
  }
}
