:root {
  color-scheme: dark;
  --navy: #07111f;
  --panel: rgba(10, 24, 43, .78);
  --line: rgba(158, 202, 255, .16);
  --text: #f5f9ff;
  --muted: #94a9c2;
  --cyan: #2dd4ff;
  --blue: #3578ff;
  --violet: #8b5cf6;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(145deg, #040a13 0%, var(--navy) 46%, #07172b 100%);
  overflow-x: hidden;
}

.ambient { position: fixed; border-radius: 999px; filter: blur(2px); opacity: .65; pointer-events: none; }
.ambient-one { width: 40vw; height: 40vw; left: -17vw; top: -12vw; background: radial-gradient(circle, rgba(45, 212, 255, .28), transparent 68%); }
.ambient-two { width: 46vw; height: 46vw; right: -17vw; bottom: -21vw; background: radial-gradient(circle, rgba(139, 92, 246, .24), transparent 68%); }

.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(87, 153, 220, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(87, 153, 220, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 76%);
}

.shell {
  min-height: calc(100vh - 66px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .8fr;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  padding: 56px 0;
  position: relative;
  z-index: 1;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(45, 212, 255, .25);
  border-radius: 999px;
  padding: 8px 12px;
  color: #acefff;
  background: rgba(45, 212, 255, .07);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.stage-pill span { width: 8px; height: 8px; border-radius: 50%; background: #35e894; box-shadow: 0 0 14px #35e894; }

.brand-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 48px 0 27px;
  color: white;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--cyan), var(--blue) 55%, var(--violet));
  box-shadow: 0 18px 55px rgba(44, 133, 255, .28), inset 0 1px rgba(255, 255, 255, .38);
}

.brand-mark svg { width: 38px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2)); }
.eyebrow, .card-eyebrow { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: 2.4px; }
.intro h1 { max-width: 650px; margin: 13px 0 20px; font-size: clamp(44px, 5.6vw, 72px); line-height: .98; letter-spacing: -3.5px; }
.intro h1 span { background: linear-gradient(100deg, #78e7ff, #6e99ff 54%, #b18aff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-copy { max-width: 570px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }

.signals { display: flex; gap: 42px; margin-top: 42px; }
.signals div { display: grid; gap: 5px; }
.signals b { font-size: 15px; }
.signals span { color: #718aa7; font-size: 12px; }

.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4.2vw, 48px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(155deg, rgba(15, 34, 58, .9), rgba(7, 18, 33, .78));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(24px);
}

.card-topline { position: absolute; inset: 0 15% auto; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent); }
.login-card h2 { margin: 9px 0 10px; font-size: 31px; letter-spacing: -1px; }
.card-copy { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 30px; }
.mobile-brand { display: none; }

form label { display: block; margin: 0 0 9px; color: #c7d7e9; font-size: 13px; font-weight: 700; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.label-row label { margin: 0 0 9px; }
.text-button { border: 0; padding: 0 0 9px; color: #6e8aaa; background: transparent; font: inherit; font-size: 12px; }

.field { position: relative; }
.field > svg { position: absolute; left: 17px; top: 50%; width: 19px; transform: translateY(-50%); fill: none; stroke: #6f8aa8; stroke-width: 1.7; }
.field input {
  width: 100%;
  height: 56px;
  padding: 0 50px 0 48px;
  border: 1px solid rgba(142, 180, 221, .17);
  border-radius: 15px;
  outline: 0;
  color: white;
  background: rgba(2, 11, 22, .52);
  font: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #536b86; }
.field input:focus { border-color: rgba(45, 212, 255, .68); background: rgba(4, 17, 31, .85); box-shadow: 0 0 0 4px rgba(45, 212, 255, .08), 0 10px 28px rgba(0, 0, 0, .18); }

.reveal { position: absolute; right: 14px; top: 50%; width: 34px; height: 34px; transform: translateY(-50%); border: 0; border-radius: 9px; cursor: pointer; color: #7f98b3; background: transparent; }
.reveal:hover { color: var(--cyan); background: rgba(45, 212, 255, .07); }
.reveal svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.remember { display: flex; align-items: center; gap: 10px; margin: 19px 0 24px; color: #91a7be; font-weight: 500; cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--blue); }
.remember span { font-size: 12px; }

.primary {
  width: 100%;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  color: white;
  background: linear-gradient(105deg, #168fdc, var(--blue) 54%, #7159e9);
  box-shadow: 0 16px 32px rgba(37, 104, 238, .28);
  font: inherit;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s;
}
.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(37, 104, 238, .4); }
.primary:active { transform: translateY(0); }
.primary b { font-size: 21px; }
.form-message { min-height: 18px; margin: 13px 0 0; text-align: center; color: #7cebb3; font-size: 12px; }

.security-note { display: flex; align-items: center; gap: 13px; margin-top: 25px; padding-top: 21px; border-top: 1px solid rgba(142, 180, 221, .12); }
.security-note > span { color: #53dcff; }
.security-note p { margin: 0; color: #718aa7; font-size: 11px; line-height: 1.55; }
.security-note strong { color: #a8bdd4; font-size: 12px; }

footer { min-height: 66px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; color: #546d89; font-size: 11px; }

@media (max-width: 850px) {
  .shell { grid-template-columns: 1fr; width: min(510px, calc(100% - 28px)); padding: 28px 0; }
  .intro { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: #e7f5ff; letter-spacing: 2px; }
  .mobile-logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, var(--cyan), var(--blue), var(--violet)); }
  footer { width: min(510px, calc(100% - 28px)); }
}

@media (max-width: 480px) {
  .login-card { padding: 27px 22px; border-radius: 24px; }
  .login-card h2 { font-size: 27px; }
  footer { justify-content: center; }
  footer span:last-child { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark { animation: float 5s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }
}
