:root {
  --bg: #031120;
  --panel: rgba(5, 24, 44, 0.82);
  --panel-strong: rgba(8, 33, 61, 0.95);
  --line: rgba(0, 174, 255, 0.36);
  --text: #f6fbff;
  --muted: #8eb3c8;
  --cyan: #12c8ff;
  --green: #58d46a;
  --red: #ff4f66;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 164, 255, 0.20), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(0, 255, 209, 0.11), transparent 31%),
    linear-gradient(135deg, #020914 0%, #03162b 48%, #010711 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 183, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 183, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  pointer-events: none;
}

.login-shell {
  width: 100vw;
  height: 100vh;
  padding: 4.5vh 4vw;
  display: grid;
  grid-template-columns: minmax(380px, 520px) 1fr;
  gap: 3vw;
  align-items: center;
}

.login-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(6, 30, 55, 0.96), rgba(2, 15, 29, 0.92));
  box-shadow: 0 0 42px rgba(0, 166, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(18, 200, 255, 0.25), transparent 68%);
  filter: blur(4px);
}
.brand-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.brand-mark {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(18, 200, 255, 0.24), rgba(18, 200, 255, 0.04));
  border: 1px solid rgba(18, 200, 255, 0.45);
  color: #9beeff;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 0 24px rgba(18, 200, 255, 0.2);
}
.brand-name { font-size: 31px; font-weight: 900; letter-spacing: 0.01em; }
.brand-subtitle { color: var(--cyan); font-size: 13px; margin-top: 2px; }
.login-title { margin-top: 52px; position: relative; z-index: 1; }
.login-title span {
  display: inline-flex;
  color: #9eeaff;
  border: 1px solid rgba(18, 200, 255, 0.35);
  background: rgba(18, 200, 255, 0.08);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-title h1 { margin: 20px 0 12px; font-size: clamp(32px, 3.2vw, 52px); line-height: .96; }
.login-title p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 420px; }
.login-form { margin-top: 38px; display: grid; gap: 16px; position: relative; z-index: 1; }
.login-form label { display: grid; gap: 8px; }
.login-form label span { color: #bbd9e8; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.login-form input {
  width: 100%; height: 52px;
  color: var(--text);
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(18, 200, 255, 0.32);
  background: rgba(2, 16, 31, 0.76);
  outline: none;
  font-size: 17px;
}
.login-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(18, 200, 255, 0.12); }
.login-form button {
  height: 56px;
  border: 0;
  border-radius: 16px;
  color: #00111e;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #8befff, #13c7ff 54%, #0fa3ff);
  box-shadow: 0 16px 32px rgba(18, 200, 255, 0.18);
}
.error { display: none; color: #ffd2d9; background: rgba(255, 79, 102, 0.12); border: 1px solid rgba(255, 79, 102, 0.35); border-radius: 12px; padding: 10px 12px; }
.error.is-visible { display: block; }
.login-footer { margin-top: 24px; display: flex; justify-content: space-between; color: #6493ad; font-size: 12px; position: relative; z-index: 1; }

.login-preview {
  position: relative;
  height: min(78vh, 840px);
  border-radius: 34px;
  border: 1px solid rgba(18, 200, 255, 0.22);
  background: rgba(3, 18, 35, 0.58);
  box-shadow: inset 0 0 52px rgba(0, 157, 255, 0.09), 0 0 80px rgba(0,0,0,0.2);
  padding: 24px;
  overflow: hidden;
}
.login-preview::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 62% 32%, rgba(18, 200, 255, .18), transparent 26%),
    linear-gradient(rgba(18, 200, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 200, 255, .05) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}
.preview-header { position: relative; height: 60px; border: 1px solid rgba(18,200,255,.22); border-radius: 18px; background: rgba(4, 28, 53, .72); }
.preview-grid { position: relative; margin-top: 18px; height: calc(100% - 78px); display: grid; grid-template-columns: 1.1fr 1.6fr 1.2fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.preview-panel { border: 1px solid rgba(18,200,255,.23); border-radius: 18px; background: linear-gradient(180deg, rgba(7, 39, 71, .78), rgba(2, 16, 31, .7)); box-shadow: inset 0 0 22px rgba(18,200,255,.06); }
.preview-panel.wide { background-image: radial-gradient(circle at 50% 45%, rgba(18,200,255,.18), transparent 42%); }
.preview-panel.tall { grid-row: span 2; }
.radar-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 24px var(--green); }
.dot-a { left: 58%; top: 34%; }
.dot-b { left: 72%; top: 49%; background: #ffc64d; box-shadow: 0 0 24px #ffc64d; }
.dot-c { left: 46%; top: 63%; background: #ff4f66; box-shadow: 0 0 24px #ff4f66; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-preview { display: none; }
  .login-card { max-width: 520px; margin: 0 auto; }
}

.login-form button i { margin-right: 8px; }
.brand-mark {
  box-shadow: 0 0 28px rgba(18,200,255,.28), inset 0 0 18px rgba(18,200,255,.14);
}
.login-card::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18,200,255,.16), transparent 68%);
  pointer-events: none;
}
@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; padding: 24px; }
  .login-preview { display: none; }
  .login-card { max-width: 560px; margin: 0 auto; }
}
