:root {
  --ink: #f4f7fb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --panel: rgba(10, 20, 35, 0.82);
  --blue: #4f8cff;
  --cyan: #4ed9ff;
  --green: #58e0b3;
  --bg: #050a12;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(39, 106, 255, 0.15), transparent 32rem),
    radial-gradient(circle at 88% 72%, rgba(23, 211, 180, 0.1), transparent 30rem),
    linear-gradient(145deg, #050a12 0%, #081322 55%, #06101a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one { top: -9rem; right: 10%; background: var(--blue); }
.ambient-two { bottom: -12rem; left: 6%; background: var(--green); }

.shell {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 94px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.72fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding: 72px 0 46px;
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 174, 255, 0.46);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.34), rgba(34, 211, 238, 0.08));
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.25);
  transform: rotate(45deg);
}

.brand-mark::before,
.brand-mark span {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid #8edcff;
  border-left-color: transparent;
  border-radius: 5px;
}

.brand-mark span { width: 8px; height: 8px; position: absolute; border-width: 1px; opacity: 0.7; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-size: 18px; letter-spacing: 0.02em; }
.brand small { margin-top: 5px; color: #7f93ad; font-size: 9px; font-weight: 700; letter-spacing: 0.26em; }

.pilot-pill {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: clamp(3.6rem, 8vh, 6.5rem) 0 22px;
  padding: 8px 13px;
  border: 1px solid rgba(78, 217, 255, 0.18);
  border-radius: 999px;
  color: #aedcf0;
  background: rgba(15, 40, 59, 0.52);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.pilot-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(88, 224, 179, 0.1), 0 0 18px rgba(88, 224, 179, 0.75);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

h1 span { display: block; }

.lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: #a9b6c8;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: clamp(2.6rem, 7vh, 5rem);
}

.feature-grid article {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 19, 32, 0.5);
  backdrop-filter: blur(16px);
}

.feature-icon { color: #67b7ff; font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.16em; }
.feature-grid h2 { margin: 20px 0 8px; font-size: 14px; }
.feature-grid p { margin: 0; color: #8190a4; font-size: 12px; line-height: 1.55; }

.login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 188, 238, 0.2);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
}

.card-glow {
  position: absolute;
  top: -9rem;
  right: -8rem;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  background: rgba(61, 135, 255, 0.22);
  filter: blur(46px);
}

.card-content { position: relative; padding: clamp(30px, 5vw, 48px); }
.eyebrow { margin: 0 0 18px; color: #6daeff; font-size: 10px; font-weight: 800; letter-spacing: 0.22em; }
.login-card h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.55rem); letter-spacing: -0.04em; }
.card-copy { margin: 11px 0 32px; color: var(--muted); font-size: 14px; }

form { display: grid; gap: 10px; }
label { margin-top: 8px; color: #b8c3d1; font-size: 12px; font-weight: 650; }

.field-wrap { position: relative; }
input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(137, 161, 192, 0.22);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: rgba(3, 10, 18, 0.72);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder { color: #526176; }
input:focus { border-color: rgba(75, 145, 255, 0.75); background: rgba(5, 15, 26, 0.94); box-shadow: 0 0 0 4px rgba(56, 132, 255, 0.11); }
.password-wrap input { padding-right: 76px; }

.icon-button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 8px;
  border: 0;
  color: #85a2c4;
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.icon-button:hover, .icon-button:focus-visible { color: #c5e8ff; }

.primary-button {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(115deg, #2868ff, #4193ff 68%, #51baf7);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.28);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover { transform: translateY(-1px); box-shadow: 0 19px 42px rgba(37, 99, 235, 0.35); }
.primary-button:active { transform: translateY(0); }

.form-status { min-height: 20px; margin: 5px 0 0; color: #9dddc9; font-size: 12px; line-height: 1.5; }

.notice {
  margin-top: 24px;
  padding: 15px 16px;
  border: 1px solid rgba(107, 145, 190, 0.15);
  border-radius: 14px;
  background: rgba(21, 37, 57, 0.45);
}

.notice strong { color: #c6d8ee; font-size: 11px; }
.notice p { margin: 6px 0 0; color: #7f91aa; font-size: 11px; line-height: 1.55; }

.security-line { display: flex; justify-content: center; gap: 8px; margin-top: 24px; color: #61738b; font-size: 10px; letter-spacing: 0.04em; }
.security-line span:first-child { color: var(--green); }

footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #58677b;
  font-size: 10px;
  letter-spacing: 0.06em;
}

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; gap: 48px; padding-top: 42px; }
  .pilot-pill { margin-top: 4rem; }
  .login-card { width: min(100%, 550px); justify-self: center; }
}

@media (max-width: 620px) {
  .shell, footer { width: min(calc(100% - 28px), 1180px); }
  .shell { padding-top: 28px; }
  h1 { font-size: clamp(2.65rem, 13vw, 3.35rem); line-height: 1.02; text-wrap: pretty; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .card-content { padding: 27px 22px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}

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