:root {
  --bg: #030605;
  --bg-soft: #07110d;
  --panel: rgba(8, 16, 13, 0.76);
  --panel-border: rgba(122, 255, 186, 0.24);
  --text: #e6ffee;
  --muted: #8cb7a0;
  --accent: #6effa7;
  --accent-strong: #20ff7a;
  --accent-dim: rgba(110, 255, 167, 0.14);
  --warning: #d8ff66;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at top left, rgba(32, 255, 122, 0.12), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(32, 255, 122, 0.08), transparent 18%),
    linear-gradient(180deg, #06100c 0%, #020403 46%, #000000 100%);
  color: var(--text);
  font-family: "Source Code Pro", monospace;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 4px, 4px 100%;
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.16;
  pointer-events: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.ambient-glow {
  position: fixed;
  top: 12vh;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 255, 122, 0.2), transparent 68%);
  filter: blur(10px);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.ambient-glow-left {
  left: -10rem;
}

.ambient-glow-right {
  right: -8rem;
  top: auto;
  bottom: 4vh;
}

.login-scene {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 540px);
  gap: 3rem;
  align-items: center;
  min-height: 100vh;
  padding: 4rem clamp(1.25rem, 4vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
}

.info-rail {
  position: relative;
  max-width: 40rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(110, 255, 167, 0.16);
  border-radius: 999px;
  background: rgba(6, 14, 10, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.brand-mark {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 12px rgba(110, 255, 167, 0.45));
}

.brand-name,
.eyebrow,
.panel-kicker,
.panel-status,
.field-label,
.text-link,
.monitoring-note {
  letter-spacing: 0.08em;
}

.brand-name,
.eyebrow,
.panel-kicker {
  text-transform: uppercase;
}

.brand-name {
  font-size: 0.95rem;
  color: var(--text);
}

.eyebrow {
  margin: 2rem 0 1rem;
  color: var(--warning);
  font-size: 0.75rem;
}

h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(110, 255, 167, 0.3);
}

.lead {
  max-width: 32rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.system-points {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.system-points li {
  position: relative;
  padding-left: 1.5rem;
  color: #c7edd8;
  line-height: 1.7;
}

.system-points li::before {
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--accent-strong);
  content: ">";
}

.panel-wrap {
  position: relative;
  min-height: 42rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-noise,
.panel-grid,
.panel-code {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  pointer-events: none;
}

.panel-noise {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(110, 255, 167, 0.16), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(110, 255, 167, 0.12), transparent 20%);
  filter: blur(2px);
}

.panel-grid {
  opacity: 0.55;
  mix-blend-mode: screen;
}

.panel-code {
  inset: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  opacity: 0.3;
  object-fit: cover;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  padding: 2rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(17, 29, 24, 0.9) 0%, rgba(7, 14, 11, 0.84) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(110, 255, 167, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(32, 255, 122, 0.14);
  backdrop-filter: blur(18px);
}

.login-panel::before,
.login-panel::after {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  border-color: rgba(110, 255, 167, 0.45);
  content: "";
}

.login-panel::before {
  top: 1rem;
  left: 1rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

.login-panel::after {
  right: 1rem;
  bottom: 1rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.panel-kicker,
.panel-status {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 12px rgba(32, 255, 122, 0.9);
}

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

.field {
  display: grid;
  gap: 0.55rem;
}

.field-label {
  color: #bceccc;
  font-size: 0.78rem;
  text-transform: uppercase;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 1rem 1rem 1rem 1.05rem;
  border: 1px solid rgba(110, 255, 167, 0.18);
  border-radius: var(--radius-md);
  background: rgba(3, 8, 6, 0.9);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

input::placeholder {
  color: #62856f;
}

input:focus {
  border-color: rgba(110, 255, 167, 0.65);
  box-shadow:
    0 0 0 4px rgba(110, 255, 167, 0.12),
    0 0 16px rgba(32, 255, 122, 0.15);
  transform: translateY(-1px);
}

.password-row {
  position: relative;
  display: block;
}

.password-row input {
  padding-right: 5.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

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

.remember-device {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #bddfc8;
  font-size: 0.9rem;
}

.remember-device input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent-strong);
}

.text-link {
  color: var(--accent);
  font-size: 0.84rem;
  text-decoration: none;
}

.text-link:hover,
.toggle-password:hover {
  color: #b6ffcf;
}

.primary-action {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(32, 255, 122, 0.85), rgba(129, 255, 176, 0.96));
  color: #031108;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 12px 35px rgba(32, 255, 122, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(32, 255, 122, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.monitoring-note {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .login-scene {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .info-rail {
    max-width: none;
  }

  .panel-wrap {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .login-scene {
    padding: 1.25rem;
  }

  .brand-badge {
    padding: 0.75rem 0.95rem;
  }

  h1 {
    font-size: clamp(2.3rem, 16vw, 3.5rem);
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .login-panel {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .panel-header,
  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-action {
    font-size: 0.88rem;
  }
}
