.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 24%),
    linear-gradient(180deg, #081026 0%, #081d44 100%);
}

.login-screen {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  width: min(1180px, 100%);
  align-items: center;
}

.login-visual {
  background: linear-gradient(180deg, #061a49 0%, #0f2f6f 100%);
  border-radius: 38px;
  color: #f8fafc;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 42px 110px rgba(2, 16, 50, 0.32);
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.16), transparent 18%),
    radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.14), transparent 20%);
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-badge-icon {
  font-size: 1.75rem;
}

.hero-copy {
  max-width: 460px;
}

.hero-copy .hero-label {
  margin: 0 0 0.5rem;
  color: #a5b4fc;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.03;
  color: #fff;
}

.hero-copy p {
  margin: 1rem 0 0;
  max-width: 440px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1rem;
}

.hero-artboard {
  position: relative;
  min-height: 360px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  overflow: hidden;
  padding: 2rem;
}

.hero-artboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 32%, rgba(59, 130, 246, 0.18), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(96, 165, 250, 0.12), transparent 18%);
}

.device {
  position: absolute;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 72px rgba(8, 20, 48, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.device::before {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.device-server {
  width: 168px;
  height: 152px;
  top: 36px;
  left: 30px;
}

.device-router {
  width: 132px;
  height: 112px;
  top: 108px;
  right: 34px;
}

.device-switch {
  width: 150px;
  height: 84px;
  bottom: 52px;
  left: 40px;
}

.device-access {
  width: 96px;
  height: 96px;
  bottom: 44px;
  right: 62px;
}

.art-link {
  position: absolute;
  width: 220px;
  height: 2px;
  background: rgba(96, 165, 250, 0.8);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.32);
}

.link-a {
  top: 130px;
  left: 190px;
  transform: rotate(18deg);
}

.link-b {
  top: 210px;
  left: 90px;
  transform: rotate(-12deg);
}

.link-c {
  bottom: 130px;
  right: 150px;
  transform: rotate(22deg);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.hero-features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #e2e8f0;
}

.hero-features strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
}

.hero-features p {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.95rem;
}

.login-form-panel {
  padding: 2.25rem;
  border-radius: 36px;
  max-width: 520px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

.login-form-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.avatar-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #1d4ed8;
}

.login-form-header h2 {
  margin: 0;
  font-size: 2.1rem;
  color: #0f172a;
}

.login-form-header p {
  margin: 0.5rem auto 0;
  color: #64748b;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form label {
  display: grid;
  gap: 0.5rem;
  color: #0f172a;
  font-weight: 600;
}

.input-group {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.input-group input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 1rem;
  color: #0f172a !important;
}

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

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  background-color: #f8fafc !important;
}

.input-icon {
  color: #64748b;
  font-size: 1rem;
}

.password-toggle {
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #64748b;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.password-toggle svg {
  display: block;
}

.password-toggle.visible svg {
  stroke: #1d4ed8;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #475569;
}

.checkbox-label input {
  width: auto;
  margin: 0;
}

.text-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.95rem;
}

.button-primary {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  font-weight: 700;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.login-footer {
  margin-top: 1.75rem;
  text-align: center;
  display: grid;
  gap: 1rem;
}

.login-footer .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #94a3b8;
}

.login-footer .divider::before,
.login-footer .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.button-outline {
  background: transparent;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.95rem 1rem;
  border-radius: 16px;
}

.contact-info-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 500;
  user-select: all;
  letter-spacing: 0.01em;
}

.contact-info-box svg {
  color: #3b82f6;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    order: 2;
  }
}

@media (max-width: 680px) {
  .login-page {
    padding: 1rem;
  }

  .login-visual,
  .login-form-panel {
    border-radius: 24px;
    padding: 1.5rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }
}

/* Reference layout: full viewport split screen with the supplied network artwork. */
.main-content.full-width:has(.login-page) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.login-page {
  min-height: 100vh;
  padding: 0;
  background: #f8fbff;
  overflow: hidden;
}

.login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}

.login-visual {
  min-height: 100vh;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 5.2rem) clamp(2rem, 5vw, 5.5rem) 3rem;
  border-radius: 0;
  background-color: #061b4c;
  background-image: linear-gradient(180deg, rgba(3, 20, 58, 0.18), rgba(3, 20, 58, 0.28)), url('../img/e345c675-60ef-4313-a983-a09ce7ac3e97.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: none;
}

.login-visual::before {
  background: linear-gradient(180deg, rgba(4, 23, 65, 0.38), transparent 42%, rgba(4, 23, 65, 0.18));
}

.hero-top {
  gap: 1rem;
  max-width: 590px;
}

.hero-badge {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  color: #1676ed;
  box-shadow: 0 10px 25px rgba(1, 14, 42, 0.2);
}

.hero-badge-icon svg { width: 39px; height: 39px; }
.hero-copy .hero-label { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.1vw, 2rem); font-weight: 800; }
.hero-copy h1 { font-size: clamp(2.3rem, 4vw, 4rem); }
.hero-copy p { margin-top: 0.8rem; font-size: clamp(0.9rem, 1.2vw, 1.1rem); line-height: 1.55; }

.hero-features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 700px;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(147, 197, 253, 0.5);
}

.hero-features li {
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.8rem;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 0;
  text-align: center;
}

.hero-features li:last-child { border-right: 0; }
.feature-icon { width: 42px; min-width: 42px; height: 42px; background: transparent; color: #55b7ff; }
.hero-features strong { font-size: 0.82rem; line-height: 1.25; }
.hero-features p { display: none; }

.login-form-panel {
  align-self: center;
  justify-self: center;
  width: min(470px, calc(100% - 3rem));
  max-width: 470px;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(30, 64, 175, 0.12);
}

.login-form-header { margin-bottom: 1.4rem; }
.avatar-box { width: 68px; height: 68px; margin-bottom: 0.8rem; border-radius: 0; background: transparent; color: #1683e8; }
.login-form-header h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
.login-form-header p { font-size: 0.88rem; }
.login-form { gap: 0.9rem; }
.login-form label { gap: 0.35rem; font-size: 0.83rem; }
.input-group { padding: 0.7rem 0.85rem; border-radius: 8px; background: #fff; border-color: #cbdcf4; }
.input-group input { font-size: 0.9rem; }
.button-primary { height: 50px; border-radius: 7px; }
.login-footer { margin-top: 1.25rem; gap: 0.7rem; }
.login-footer .divider { font-size: 0.78rem; }
.button-outline { padding: 0.7rem 1rem; border-radius: 7px; font-size: 0.85rem; }

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 0.9fr 1.1fr; }
  .login-visual { padding-inline: 2rem; }
  .hero-copy h1 { font-size: 2.5rem; }
}

@media (max-width: 700px) {
  .login-page { overflow: auto; }
  .login-screen { display: block; min-height: 100vh; }
  .login-visual { min-height: 390px; padding: 2rem 1.4rem 1.5rem; }
  .hero-top { align-items: center; }
  .hero-copy .hero-label { font-size: 1rem; }
  .hero-copy h1 { font-size: 2rem; }
  .hero-copy p { font-size: 0.78rem; }
  .hero-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-features li { padding: 0 0.25rem; }
  .hero-features strong { font-size: 0.65rem; }
  .login-form-panel { width: calc(100% - 2rem); margin: 1rem auto; }
}
