:root {
  --landing-navy: #14284d;
  --landing-navy-strong: #0f1d3b;
  --landing-blue: #16a8ef;
  --landing-blue-deep: #1a71b6;
  --landing-text: #122552;
  --landing-muted: #607495;
  --landing-surface: rgba(255, 255, 255, 0.84);
  --landing-border: rgba(193, 212, 235, 0.78);
}

html {
  overflow-x: hidden;
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 20%, rgba(135, 210, 255, 0.42), transparent 26%),
    radial-gradient(circle at 78% 20%, rgba(18, 47, 95, 0.08), transparent 28%),
    linear-gradient(135deg, #edf7ff 0%, #f7fbff 48%, #eef3f9 100%);
  color: #061b42;
  overflow-x: hidden;
}

.landing-header {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #14284d, #182d55 42%, #193360 100%);
  border-bottom: 1px solid rgba(160, 194, 236, 0.16);
}

.landing-header-inner {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

a.landing-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.landing-logo-image {
  display: block;
  width: 168px;
  height: 38px;
  background-image: url("/assets/nexus-logo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-actions,
.landing-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

a.landing-button,
button.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  padding: 13px 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--landing-blue), var(--landing-blue-deep));
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(17, 114, 180, 0.22);
}

.landing-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(169, 197, 235, 0.2);
  box-shadow: none;
}

.landing-button-large {
  min-width: 160px;
}

a.landing-link {
  color: #315582;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 4px;
}

.role-shell,
.auth-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  min-width: 0;
}

.role-shell {
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, 0.95fr) minmax(620px, 1.15fr);
  padding: clamp(28px, 4.5vw, 54px) 0 24px;
}

.auth-shell {
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  padding: clamp(30px, 5vw, 56px) 0 36px;
}

.landing-copy,
.auth-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.landing-copy {
  align-content: center;
  padding-right: clamp(0px, 2vw, 24px);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 244, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(42, 117, 192, 0.08);
  color: #245ad4;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-copy h1,
.auth-copy h1 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--landing-text);
  letter-spacing: -0.05em;
}

.landing-copy h1 {
  font-size: clamp(44px, 5.8vw, 74px);
  line-height: 0.98;
  max-width: 640px;
}

.auth-copy h1 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.98;
  max-width: 760px;
}

.landing-description,
.auth-description {
  max-width: 620px;
  color: var(--landing-muted);
  line-height: 1.75;
}

.landing-description {
  font-size: 18px;
}

.auth-description {
  font-size: 18px;
}

.landing-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 6px;
}

.landing-highlights article,
.auth-feature-list article,
.landing-bottom-card,
.auth-card {
  border: 1px solid var(--landing-border);
  background: var(--landing-surface);
  box-shadow: 0 14px 28px rgba(15, 39, 79, 0.05);
}

.landing-highlights article {
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.landing-highlights strong,
.auth-feature-list strong {
  color: var(--landing-text);
}

.landing-highlights strong {
  font-size: 20px;
  line-height: 1.2;
}

.landing-highlights span,
.auth-feature-list span,
.landing-bottom-card {
  color: var(--landing-muted);
}

.landing-highlights span {
  font-size: 14px;
  line-height: 1.6;
}

.landing-visual {
  display: grid;
  place-items: center;
  align-self: stretch;
}

.desktop-preview {
  width: min(100%, 860px);
  border-radius: 26px;
  padding: 12px;
  background: linear-gradient(180deg, #213d73, #112140);
  box-shadow: 0 40px 80px rgba(15, 34, 69, 0.22);
  min-width: 0;
}

.desktop-chrome {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 10px;
}

.desktop-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.desktop-screen {
  min-height: 500px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf5ff, #f8fbff 58%, #eff4ff);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-width: 0;
}

.preview-sidebar {
  background: linear-gradient(180deg, #14284d, #173663 60%, #11284c);
  color: #f2f7ff;
  padding: 22px 16px;
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.preview-brand {
  display: grid;
  gap: 2px;
}

.preview-brand strong {
  font-size: 22px;
  letter-spacing: 0.08em;
}

.preview-brand span {
  color: rgba(230, 240, 255, 0.76);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.preview-nav {
  display: grid;
  gap: 10px;
}

.preview-nav-item {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(175, 202, 242, 0.1);
  font-weight: 700;
}

.preview-nav-item.active {
  background: linear-gradient(135deg, rgba(33, 168, 239, 0.26), rgba(33, 92, 185, 0.28));
  border-color: rgba(128, 196, 255, 0.24);
}

.preview-sidebar-card {
  margin-top: 10px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(175, 202, 242, 0.12);
  display: grid;
  gap: 6px;
}

.preview-sidebar-card small,
.preview-sidebar-card span {
  color: rgba(230, 240, 255, 0.76);
}

.preview-sidebar-card strong {
  font-size: 32px;
}

.preview-content {
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.preview-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.preview-topbar small,
.preview-panel-head span {
  color: #6e83a6;
}

.preview-topbar h2 {
  margin-top: 4px;
  color: #233d72;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
  max-width: 430px;
}

.preview-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--landing-blue), var(--landing-blue-deep));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.preview-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-stat-row article,
.preview-panel {
  border-radius: 18px;
  border: 1px solid rgba(170, 194, 227, 0.48);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(43, 74, 133, 0.08);
}

.preview-stat-row article {
  padding: 16px;
  display: grid;
  gap: 4px;
}

.preview-stat-row small,
.preview-list-item span {
  color: #7183a5;
}

.preview-stat-row strong {
  color: #203a6a;
  font-size: 20px;
}

.system-preview {
  min-width: 0;
}

.screen-window {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(172, 196, 230, 0.7);
  background: linear-gradient(180deg, #fdfefe, #eef4fb);
  box-shadow: 0 24px 48px rgba(30, 66, 120, 0.12);
}

.screen-window-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f8fbff, #edf3fb);
  border-bottom: 1px solid rgba(187, 207, 234, 0.8);
}

.screen-window-dots {
  display: inline-flex;
  gap: 6px;
}

.screen-window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b7c7df;
  display: block;
}

.screen-window-spacer {
  display: block;
  min-height: 10px;
}

.screen-window-body {
  padding: 12px 18px 18px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(62, 182, 243, 0.12), transparent 22%),
    linear-gradient(180deg, #fdfefe, #f2f7fd);
}

.screen-sidebar,
.screen-main {
  min-width: 0;
}

.screen-sidebar {
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(180deg, #132d57, #102548 60%, #0f2242);
  display: grid;
  align-content: start;
  gap: 14px;
}

.screen-sidebar-block.brand,
.screen-sidebar-nav span,
.screen-sidebar-card {
  border-radius: 14px;
}

.screen-sidebar-block.brand {
  height: 44px;
  width: 84px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(215, 232, 255, 0.88));
}

.screen-sidebar-nav {
  display: grid;
  gap: 10px;
}

.screen-sidebar-nav span {
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(173, 198, 235, 0.12);
}

.screen-sidebar-nav span.active {
  background: linear-gradient(135deg, rgba(34, 168, 239, 0.28), rgba(25, 95, 181, 0.32));
  border-color: rgba(114, 190, 255, 0.34);
}

.screen-sidebar-card {
  height: 150px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(176, 203, 243, 0.12);
}

.screen-main {
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(192, 209, 233, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: block;
}

.screen-dashboard-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.landing-description,
.auth-description {
  overflow-wrap: anywhere;
}

.device-tag {
  color: #3568d8;
  font-size: 12px;
  font-weight: 800;
}

.device-footnote {
  color: #7183a5;
  line-height: 1.65;
  font-size: 14px;
}

.device-fields,
.device-access,
.auth-feature-list,
.auth-actions {
  display: grid;
  gap: 10px;
}

.device-fields > div {
  border-radius: 16px;
  border: 1px solid #d8e3f2;
  background: #f8fbff;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.device-fields strong {
  color: #203a6a;
  font-size: 14px;
}

.device-fields span {
  color: #7082a5;
  font-size: 13px;
}

.device-primary {
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
}

.landing-bottom {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 36px;
}

.landing-bottom-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 14px 18px;
}

.auth-feature-list article {
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 6px;
}

.auth-card {
  border-radius: 32px;
  padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 18px;
}

.auth-card-head {
  display: grid;
  gap: 8px;
}

.auth-card-centered {
  align-content: center;
}

.auth-actions .login-secondary {
  text-align: center;
}

.auth-shell-tight {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 480px);
}

.auth-shell-login {
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 460px);
}

.auth-copy-compact h1,
.auth-copy-login h1 {
  max-width: 560px;
  font-size: clamp(36px, 4.2vw, 58px);
}

.auth-copy-minimal {
  max-width: 440px;
  gap: 16px;
}

.auth-copy-minimal h1 {
  max-width: 420px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
}

.auth-copy-minimal .auth-description {
  font-size: 16px;
  line-height: 1.7;
}

.auth-card-focus {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 60px rgba(14, 35, 69, 0.14);
}

.auth-inline-points {
  display: grid;
  gap: 12px;
}

.auth-inline-points > div {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(187, 209, 234, 0.78);
  display: grid;
  gap: 4px;
}

.auth-inline-points strong {
  color: var(--landing-text);
}

.auth-inline-points span {
  color: var(--landing-muted);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(190, 213, 239, 0.88);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(238, 245, 255, 0.92));
}

.login-check {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  color: #5d7497;
  cursor: pointer;
}

.login-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.login-check-box {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid #bdd6f1;
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.login-check-copy {
  display: grid;
  gap: 2px;
}

.login-check-copy strong {
  color: var(--landing-text);
  font-size: 14px;
  line-height: 1.1;
}

.login-check-copy small {
  color: #6d81a3;
  font-size: 12px;
  line-height: 1.2;
}

.login-check:hover .login-check-box {
  border-color: #8fc5ef;
  transform: translateY(-1px);
}

.login-check input:focus-visible + .login-check-box {
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(22, 168, 239, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-check input:checked + .login-check-box {
  border-color: #1798df;
  background: linear-gradient(135deg, #2db7f3, #1a73b7);
  box-shadow:
    0 10px 18px rgba(23, 129, 201, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-check input:checked + .login-check-box::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  margin: 3px 0 0 7px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.login-inline-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(167, 204, 240, 0.78);
  background: rgba(255, 255, 255, 0.8);
  color: #1c7ed0;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.login-inline-link-label {
  font-weight: 800;
}

.login-inline-link small {
  color: #6f84a6;
  font-size: 12px;
}

.login-inline-link:hover {
  transform: translateY(-1px);
  border-color: rgba(97, 172, 233, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(34, 112, 183, 0.12);
}

.auth-shell-login {
  gap: clamp(22px, 3vw, 44px);
}

@media (max-width: 1180px) {
  .landing-highlights {
    grid-template-columns: 1fr;
  }

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

  .desktop-preview {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .role-shell,
  .auth-shell {
    width: min(1380px, calc(100% - 24px));
    grid-template-columns: 1fr;
  }

  .role-shell {
    padding-top: 24px;
  }

  .landing-header-inner {
    width: min(1380px, calc(100% - 24px));
  }

  .landing-copy h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .auth-copy h1 {
    font-size: clamp(38px, 10vw, 58px);
  }

  .landing-description {
    font-size: 17px;
  }

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

  .desktop-screen {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    gap: 14px;
  }

  .preview-stat-row {
    grid-template-columns: 1fr;
  }

  .screen-window-body {
    grid-template-columns: 1fr;
  }

  .screen-sidebar {
    display: none;
  }
}

@media (max-width: 720px) {
  .landing-header-inner,
  .landing-bottom,
  .role-shell,
  .auth-shell {
    width: min(1380px, calc(100% - 24px));
  }

  .landing-header-inner {
    min-height: 72px;
  }

  .landing-logo-image {
    width: 144px;
    height: 32px;
  }

  .role-shell {
    gap: 22px;
    padding: 20px 0;
  }

  .auth-shell {
    padding: 22px 0 24px;
  }

  .landing-actions {
    width: 100%;
  }

  .landing-button,
  .landing-button-secondary {
    flex: 1 1 140px;
  }

  .landing-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-copy,
  .auth-copy {
    gap: 18px;
  }

  .landing-highlights {
    grid-template-columns: 1fr;
  }

  .desktop-preview {
    padding: 10px;
    border-radius: 22px;
  }

  .desktop-screen {
    min-height: auto;
  }

  .preview-content {
    padding: 16px;
  }

  .preview-topbar {
    flex-direction: column;
  }

  .preview-topbar h2 {
    font-size: 26px;
  }

  .preview-cta {
    width: 100%;
  }

  .screen-window {
    border-radius: 20px;
  }

  .screen-window-bar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .screen-window-body {
    padding: 10px 14px 14px;
  }

  .screen-main {
    padding: 12px;
  }

  .login-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-inline-link {
    width: 100%;
    align-items: flex-start;
  }

  .landing-bottom-card {
    display: flex;
  }

  .auth-card {
    border-radius: 24px;
    padding: 20px;
  }

  .auth-feature-list article {
    border-radius: 18px;
  }
}
