:root {
  --bg: #0a1420;
  --line: rgba(154, 187, 221, 0.20);
  --text: #f0f7ff;
  --muted: #91a5b9;
  --accent: #69d7ff;
  --accent-2: #68a8ff;
  --danger: #ff7c92;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.30);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(54, 151, 255, 0.14), transparent 31%),
    radial-gradient(circle at 84% 82%, rgba(69, 255, 208, 0.09), transparent 31%),
    var(--bg);
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(123, 181, 231, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 181, 231, .09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .24;
}
.ambient-a { width: 360px; height: 360px; background: #1458ff; top: -120px; left: -80px; }
.ambient-b { width: 420px; height: 420px; background: #00d7c7; right: -180px; bottom: -220px; }

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: min(680px, calc(100vh - 48px));
  min-height: min(680px, calc(100dvh - 48px));
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(13, 26, 43, .82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-panel,
.login-panel { position: relative; }

.brand-panel {
  display: flex;
  flex-direction: column;
  padding: 44px 50px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(23, 53, 82, .86), rgba(12, 26, 43, .72)),
    linear-gradient(rgba(108, 211, 255, .04), rgba(108, 211, 255, 0));
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.035em;
  font-size: 20px;
}

.brand-dot { color: var(--accent); }

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  align-items: end;
  width: 21px;
  height: 21px;
}
.brand-mark span {
  display: block;
  width: 5px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(105, 215, 255, .42);
}
.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 13px; }
.brand-mark.small { transform: scale(.86); transform-origin: left center; }

.hero-copy {
  margin: auto 0;
  max-width: 520px;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 84px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 600;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 54px;
  background: rgba(11, 22, 36, .76);
}

.login-wrap { width: min(390px, 100%); }
.mobile-brand { display: none; margin-bottom: 48px; }

.login-form > label {
  display: block;
  margin: 0 0 9px;
  color: #c3cfda;
  font-size: 12px;
  font-weight: 600;
}
.password-label { margin-top: 20px !important; }

.field {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(25, 43, 64, .82);
  transition: .2s ease;
}
.field:focus-within {
  border-color: rgba(105, 215, 255, .58);
  box-shadow: 0 0 0 4px rgba(105, 215, 255, .07), inset 0 0 25px rgba(105, 215, 255, .03);
}
.field > svg {
  width: 18px;
  margin-right: 11px;
  fill: none;
  stroke: #7890a7;
  stroke-width: 1.5;
}
.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}
.field input::placeholder { color: #708297; }

.reveal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #8aa0b4;
  cursor: pointer;
}
.reveal svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 54px;
  margin-top: 26px;
  padding: 0 18px 0 20px;
  border: 1px solid rgba(105, 215, 255, .44);
  border-radius: 14px;
  color: #06111b;
  background: linear-gradient(135deg, #80e3ff, #75b3ff);
  box-shadow: 0 14px 30px rgba(72, 160, 255, .16);
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.submit:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(72, 160, 255, .24); }
.submit:active { transform: translateY(0); }
.submit svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.form-message {
  min-height: 18px;
  margin: 12px 2px 0;
  color: var(--muted);
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
}
.form-message.error { color: var(--danger); }

@media (max-width: 900px) {
  body { place-items: stretch center; }
  .shell {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
  }
  .brand-panel { display: none; }
  .login-panel { min-height: 100%; padding: 48px 28px; }
  .mobile-brand { display: inline-flex; }
}

@media (max-width: 520px) {
  body { padding: 0; }
  .shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .login-panel { min-height: 100vh; min-height: 100dvh; padding: 34px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
