:root {
  color-scheme: dark;
  --bg: #050914;
  --panel: #081525;
  --panel-2: #0d2135;
  --line: #153454;
  --text: #f2f7ff;
  --muted: #82a0c4;
  --soft: #c8dcf5;
  --green: #20f0a7;
  --blue: #1687ff;
  --violet: #8b5cff;
  --amber: #f5a524;
  --red: #ff544a;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
  font-family: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(32, 240, 167, .11), transparent 310px),
    radial-gradient(circle at 92% 16%, rgba(139, 92, 255, .16), transparent 320px),
    linear-gradient(180deg, #07101f 0%, var(--bg) 44%, #040811 100%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(32, 240, 167, .62);
  background: linear-gradient(145deg, #08272f, #06101d);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(32, 240, 167, .18);
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand > span:not(.logo) {
  display: block;
}

.brand > span:not(.logo) > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

.btn {
  border: 1px solid var(--line);
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--panel-2);
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  border-color: transparent;
  background: var(--green);
  color: #04120d;
}

.btn.violet {
  border-color: rgba(139, 92, 255, .6);
  background: linear-gradient(135deg, #37158e, #5b24c9);
  color: white;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 34px;
  padding: 28px 0 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  border: 1px solid rgba(32, 240, 167, .32);
  background: rgba(32, 240, 167, .07);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .9px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: .96;
  letter-spacing: 0;
  margin: 18px 0 18px;
}

.lead {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 0 24px;
}

.hero-actions,
.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.metric,
.panel,
.login-card {
  border: 1px solid var(--line);
  background: rgba(8, 21, 37, .84);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  min-height: 92px;
  padding: 14px;
}

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

.metric strong {
  display: block;
  font-size: 26px;
  margin-top: 10px;
}

.preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(22, 135, 255, .12), rgba(32, 240, 167, .05));
  padding: 12px;
  box-shadow: var(--shadow);
}

.preview img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 46px;
}

.panel {
  padding: 18px;
  min-height: 144px;
}

.panel small {
  color: var(--green);
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.panel h3 {
  margin: 10px 0 8px;
  font-size: 19px;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
}

.auth-visual {
  padding: 30px;
  display: grid;
  align-content: center;
}

.auth-visual .preview {
  max-width: 820px;
}

.login-wrap {
  border-left: 1px solid var(--line);
  background: rgba(5, 12, 22, .76);
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(100%, 390px);
  padding: 26px;
}

.login-card h1 {
  font-size: 28px;
  line-height: 1.12;
  margin: 18px 0 8px;
}

.login-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 22px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #08111d;
  color: var(--text);
  border-radius: 8px;
  padding: 12px;
  outline: 0;
}

.field input:focus {
  border-color: var(--blue);
}

.submit {
  width: 100%;
  margin-top: 4px;
}

.hint,
.error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.error {
  color: var(--red);
}

.security-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.security-list span {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  padding: 10px 12px;
}

@media (max-width: 980px) {
  .hero,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .login-wrap {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 620px) {
  .topbar,
  .nav-actions,
  .hero-actions,
  .login-links {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-band,
  .metrics {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    padding: 18px;
  }
}
