:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --panel: #ffffff;
  --panel-strong: #eef5f2;
  --text: #12201d;
  --muted: #66736f;
  --line: #d9e5e1;
  --accent: #0f766e;
  --accent-dark: #0d5f58;
  --accent-soft: #e2f3ef;
  --gold: #d88917;
  --gold-soft: #fff4de;
  --warning: #b96010;
  --sidebar: #0b201d;
  --sidebar-2: #123932;
  --shadow: 0 18px 54px rgba(19, 47, 42, 0.1);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 82% 0%, rgba(216, 137, 23, 0.14), transparent 28%),
    linear-gradient(135deg, #fbfdfc 0%, var(--bg) 54%, #edf4f1 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
  color: var(--text);
}

button,
select,
a,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
  min-height: 100dvh;
  padding: 24px;
  background: #050806;
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100dvh - 56px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #050806;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  color: #fff;
  padding: 34px;
}

.login-copy {
  position: relative;
  z-index: 3;
  max-width: 780px;
  padding-bottom: 7vh;
}

.login-copy h1 {
  margin: 22px 0 14px;
  max-width: 760px;
  font-size: clamp(72px, 12vw, 180px);
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.login-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.login-panel {
  align-self: center;
  position: relative;
  z-index: 4;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
}

.login-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 38%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(90deg, rgba(4, 13, 10, 0.44), rgba(4, 13, 10, 0.64)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.58));
}

.gooey-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pixel-trail {
  --pixel-size: 32px;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  filter: url("#portal-gooey-filter");
  pointer-events: auto;
}

.pixel-row {
  display: flex;
}

.pixel-dot {
  display: block;
  width: var(--pixel-size);
  height: var(--pixel-size);
  flex: 0 0 var(--pixel-size);
  background: #ffffff;
  opacity: 0;
}

.pixel-dot.is-lit {
  animation: pixel-fade 0.52s ease-out 0.04s both;
}

@keyframes pixel-fade {
  0% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

.form-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.form-head p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.login-panel form,
.login-panel label {
  display: grid;
  gap: 8px;
}

.login-panel form {
  gap: 16px;
}

.login-panel label span {
  color: #31413d;
  font-size: 13px;
  font-weight: 800;
}

.login-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9d7d3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.login-panel input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 116, 92, 0.14);
}

.error-text {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100dvh;
  transition: grid-template-columns 0.22s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 56%, #091814 100%);
  color: #ffffff;
  box-shadow: 14px 0 48px rgba(15, 35, 31, 0.18);
  padding: 18px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
}

.app-shell.sidebar-collapsed .sidebar {
  align-items: center;
  padding: 16px 10px;
}

.brand {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 14px 30px rgba(216, 137, 23, 0.22);
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
}

.brand-meta {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.app-shell.sidebar-collapsed .brand {
  grid-template-columns: 44px;
}

.app-shell.sidebar-collapsed .brand > div:last-child,
.app-shell.sidebar-collapsed .profile-panel,
.app-shell.sidebar-collapsed .nav-title,
.app-shell.sidebar-collapsed .nav-item span,
.app-shell.sidebar-collapsed .nav-item small,
.app-shell.sidebar-collapsed .sidebar-toggle strong {
  display: none;
}

.sidebar-toggle {
  display: flex;
  min-height: 38px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.sidebar-toggle span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  width: 44px;
}

.app-shell.sidebar-collapsed .sidebar-toggle span {
  transform: rotate(180deg);
}

.login-brand .brand-meta {
  color: rgba(255, 255, 255, 0.72);
}

.login-brand .status-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.profile-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-panel select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c9d7d3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
}

.profile-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.6;
}

.profile-name {
  font-size: 16px;
  font-weight: 800;
}

.nav-groups {
  display: grid;
  gap: 14px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-title {
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 800;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(216, 137, 23, 0.16);
  color: #fff7e7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.nav-item small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.app-shell.sidebar-collapsed .nav-groups,
.app-shell.sidebar-collapsed .nav-group {
  width: 100%;
}

.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  min-height: 42px;
  padding: 0;
}

.app-shell.sidebar-collapsed .nav-item::before {
  content: attr(data-initial);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  margin: 0 auto 18px;
  max-width: 1480px;
  border: 1px solid rgba(217, 229, 225, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 34px rgba(19, 47, 42, 0.06);
  padding: 12px 14px;
  backdrop-filter: blur(14px);
}

.eyeline {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--accent-dark), #0a4c46);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: #25332f;
}

.button.ghost:hover {
  border-color: #b7c8c3;
  background: #f8fbfa;
}

.button.compact {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.button.wide {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.overview,
.frame-panel {
  margin: 0 auto;
  max-width: 1480px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-copy,
.service-board,
.module-card,
.frame-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 260px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(216, 137, 23, 0.12), transparent 38%),
    var(--panel);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
}

.hero-copy h2 {
  max-width: 760px;
  margin: 20px 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.service-board {
  padding: 18px;
}

.service-board h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.service-row:first-of-type {
  border-top: 0;
}

.service-row strong {
  display: block;
  font-size: 14px;
}

.service-row span {
  color: var(--muted);
  font-size: 12px;
}

.service-state {
  border-radius: 999px;
  background: #eef2f1;
  color: #50615d;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.service-state.online {
  background: #dff4ea;
  color: #13623e;
}

.service-state.offline {
  background: #fff0df;
  color: var(--warning);
}

.module-grid,
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  display: grid;
  gap: 12px;
  min-height: 184px;
  padding: 18px;
}

.module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.module-card h3 {
  margin: 0;
  font-size: 18px;
}

.system-tag {
  border-radius: 999px;
  background: var(--gold-soft);
  color: #85510c;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.module-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.muted-note {
  font-size: 13px;
}

.module-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  align-self: end;
}

.module-actions .button {
  flex: 1;
}

.frame-panel {
  overflow: hidden;
}

.frame-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
}

.frame-toolbar strong {
  margin-right: 10px;
}

.frame-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

iframe {
  display: block;
  width: 100%;
  height: calc(100dvh - 128px);
  border: 0;
  background: #fff;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .login-brand {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  .workspace,
  .sidebar {
    padding: 14px;
  }

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

  .hero-copy {
    padding: 20px;
  }

  .module-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    padding: 14px;
  }

  .login-copy {
    padding-bottom: 0;
  }

  .login-copy h1 {
    font-size: clamp(58px, 18vw, 96px);
  }

  .login-brand {
    min-height: 420px;
    padding: 22px;
  }

  .login-panel {
    padding: 18px;
  }

  iframe {
    height: 70dvh;
  }
}

/* Ops Lens unified portal override */
:root {
  color-scheme: light;
  --bg: oklch(1.000 0.000 0);
  --panel: oklch(1.000 0.000 0);
  --panel-strong: oklch(0.982 0.003 110);
  --surface-2: oklch(0.955 0.006 110);
  --surface-3: oklch(0.925 0.008 110);
  --text: oklch(0.185 0.018 125);
  --muted: oklch(0.435 0.020 125);
  --line: oklch(0.885 0.010 112);
  --accent: oklch(0.535 0.105 112);
  --accent-dark: oklch(0.405 0.095 112);
  --accent-soft: oklch(0.930 0.045 112);
  --warning: oklch(0.720 0.135 78);
  --danger: oklch(0.540 0.170 28);
  --success: oklch(0.560 0.125 150);
  --shadow: 0 1px 2px oklch(0.185 0.018 125 / 0.055);
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

.login-shell {
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 0;
  background: var(--panel-strong) !important;
  padding: 24px;
}

.login-brand {
  min-height: calc(100dvh - 48px);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--bg) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow);
  padding: 32px;
}

.login-bg,
.login-scrim,
.gooey-svg,
.pixel-trail {
  display: none !important;
}

.login-brand .brand-meta,
.login-copy p {
  color: var(--muted) !important;
}

.login-brand .status-pill {
  background: var(--accent-soft) !important;
  color: var(--accent-dark) !important;
  backdrop-filter: none !important;
}

.login-copy {
  max-width: 720px;
  padding-bottom: 0;
}

.login-copy h1 {
  margin: 22px 0 14px;
  max-width: 720px;
  color: var(--text);
  font-size: 40px;
  font-weight: 750;
  line-height: 1.18;
  text-shadow: none;
}

.login-copy p {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.8;
}

.login-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: var(--panel) !important;
  box-shadow: var(--shadow);
  backdrop-filter: none !important;
  padding: 28px;
}

.brand-mark {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent-dark);
  box-shadow: none;
}

.brand-name {
  color: var(--text);
  font-weight: 750;
}

.brand-meta {
  color: var(--muted);
}

.login-panel input,
.profile-panel select {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.login-panel input:focus,
.profile-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}

.app-shell {
  background: var(--bg);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--panel-strong) !important;
  color: var(--text);
  box-shadow: none;
}

.sidebar-toggle,
.profile-panel {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.sidebar-toggle span {
  background: var(--panel-strong);
}

.profile-panel p,
.nav-title,
.nav-item small {
  color: var(--muted);
}

.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
}

.nav-item.active {
  border-color: color-mix(in oklch, var(--accent) 28%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.app-shell.sidebar-collapsed .nav-item::before {
  background: var(--panel);
}

.workspace {
  background: var(--bg);
}

.topbar,
.hero-copy,
.service-board,
.module-card,
.frame-panel {
  border: 1px solid var(--line);
  background: var(--panel) !important;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.hero-copy {
  min-height: 220px;
}

.hero-copy h2 {
  font-size: 28px;
  line-height: 1.25;
}

.hero-copy p,
.module-card p,
.service-row span,
.frame-toolbar span {
  color: var(--muted);
}

.button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.button:hover {
  border-color: var(--surface-3);
  background: var(--panel-strong);
  transform: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.button.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button.ghost {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.status-pill,
.system-tag,
.service-state {
  border: 1px solid color-mix(in oklch, var(--accent) 28%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.service-state.online {
  border-color: color-mix(in oklch, var(--success) 36%, var(--line));
  background: color-mix(in oklch, var(--success) 12%, var(--panel));
  color: oklch(0.360 0.105 150);
}

.service-state.offline {
  border-color: color-mix(in oklch, var(--warning) 36%, var(--line));
  background: color-mix(in oklch, var(--warning) 12%, var(--panel));
  color: oklch(0.430 0.110 78);
}

.frame-toolbar {
  background: var(--panel) !important;
}

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

  .login-brand {
    min-height: auto;
    border-right: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
  }

  .login-panel {
    border-radius: 0 0 8px 8px;
  }
}

@media (max-width: 720px) {
  .login-shell {
    padding: 14px;
  }

  .login-brand {
    display: block;
    padding: 22px;
  }

  .login-copy {
    margin-top: 42px;
  }

  .login-copy h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shader login treatment */
.login-shader-shell {
  position: relative;
  display: flex !important;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020403 !important;
  padding: clamp(16px, 3vw, 36px) !important;
}

.shader-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #020403;
}

.shader-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.56));
}

.shader-login-card {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  color: #ffffff;
}

.shader-login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate(10px, 10px);
}

.shader-window-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
}

.shader-window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.shader-window-dots span:nth-child(1) {
  background: #ff647c;
}

.shader-window-dots span:nth-child(2) {
  background: #ffad2f;
}

.shader-window-dots span:nth-child(3) {
  background: #34d284;
}

.shader-card-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 520px;
  padding: clamp(20px, 4vw, 52px);
}

.login-hero-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.login-hero-panel .brand {
  grid-template-columns: 46px minmax(0, 1fr);
}

.login-hero-panel .brand-mark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.login-hero-panel .brand-name {
  color: #ffffff;
}

.login-hero-panel .brand-meta {
  color: rgba(255, 255, 255, 0.58);
}

.login-shader-shell .login-copy {
  align-self: center;
  max-width: 660px;
  padding: 0 0 4vh;
}

.login-shader-shell .login-copy h1 {
  margin: 0 0 18px;
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(72px, 10vw, 142px);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.42);
  text-wrap: balance;
}

.login-shader-shell .login-copy p {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 16px;
  line-height: 1.8;
}

.login-signal {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 8px;
  color: #37d486;
  font-size: 13px;
}

.login-signal span {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #37d486;
}

.login-signal span::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: rgba(55, 212, 134, 0.24);
  animation: login-pulse 1.8s ease-out infinite;
}

.login-shader-shell .login-panel {
  align-self: center;
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(7, 9, 8, 0.58) !important;
  box-shadow: none;
  backdrop-filter: blur(16px);
  padding: 28px;
}

.login-shader-shell .form-head h2 {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.2;
}

.login-shader-shell .form-head p {
  color: rgba(255, 255, 255, 0.58);
}

.login-shader-shell .login-panel label span {
  color: rgba(255, 255, 255, 0.78);
}

.login-shader-shell .login-panel input {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.login-shader-shell .login-panel input:focus {
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.login-shader-shell .error-text {
  color: #ff9aa9;
}

.liquid-login-button {
  position: relative;
  isolation: isolate;
  min-height: 50px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.3) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  box-shadow:
    inset 3px 3px 0.5px -3px rgba(255, 255, 255, 0.74),
    inset -3px -3px 0.5px -3px rgba(255, 255, 255, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.1),
    0 16px 32px rgba(0, 0, 0, 0.18) !important;
}

.liquid-login-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 38%),
    rgba(255, 255, 255, 0.06);
  filter: blur(0.2px);
}

.liquid-login-button::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-72%) rotate(12deg);
  transition: transform 0.45s ease;
}

.liquid-login-button:hover::after {
  transform: translateX(72%) rotate(12deg);
}

.liquid-login-button:disabled::after {
  display: none;
}

.liquid-login-button span {
  position: relative;
  z-index: 1;
}

@keyframes login-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .shader-card-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-shader-shell .login-copy {
    padding-top: 48px;
  }
}

@media (max-width: 720px) {
  .login-shader-shell {
    padding: 14px !important;
  }

  .shader-login-card {
    padding: 8px;
  }

  .shader-login-card::before {
    display: none;
  }

  .shader-card-content {
    padding: 18px;
  }

  .login-shader-shell .login-copy h1 {
    font-size: clamp(52px, 18vw, 82px);
  }

  .login-shader-shell .login-panel {
    padding: 20px;
  }
}
