:root {
  --bg: #020812;
  --panel: rgba(5, 22, 42, .78);
  --border: rgba(50, 168, 255, .38);
  --blue: #08a9ff;
  --blue2: #1768ff;
  --text: #f4f8ff;
  --muted: #9fb4cf;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 70%, rgba(0, 129, 255, .18), transparent 32%),
    radial-gradient(circle at 88% 30%, rgba(0, 213, 255, .12), transparent 28%),
    linear-gradient(135deg, #01050b 0%, #041225 52%, #020711 100%);
}

body { min-height: 100vh; overflow-x: hidden; }

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: .42;
}
.ambient-one { width: 360px; height: 360px; left: -150px; bottom: 8%; background: #006eff; }
.ambient-two { width: 300px; height: 300px; right: -110px; top: 18%; background: #00c8ff; }

.grid {
  position: fixed;
  inset: 0;
  opacity: .09;
  background-image:
    linear-gradient(rgba(48, 155, 255, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 155, 255, .45) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
}

.page {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: auto;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topbar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  color: #b9cbe0;
  font-size: 13px;
  letter-spacing: .2px;
}
.topbar i {
  width: 4px; height: 4px; margin-top: 7px;
  border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.login-card {
  width: min(100%, 820px);
  margin: 58px auto 28px;
  padding: 58px 72px 48px;
  text-align: center;
  background: linear-gradient(145deg, rgba(8, 30, 54, .88), rgba(3, 16, 31, .76));
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 45px rgba(0, 132, 255, .08);
  backdrop-filter: blur(22px);
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.logo-wrap img {
  display: block;
  width: min(100%, 610px);
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 155, 255, .18));
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  font-weight: 800;
}
h1 span {
  background: linear-gradient(90deg, #19a9ff, #42d7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 14px 0 38px;
  color: #a8bdd5;
  font-size: 13px;
  letter-spacing: 7px;
}
.tagline b { color: #26c6ff; }

form { width: 100%; }

.field {
  height: 66px;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 18px;
  border-radius: 15px;
  border: 1px solid rgba(77, 151, 215, .38);
  background: rgba(2, 13, 27, .58);
  transition: .2s ease;
}
.field:focus-within {
  border-color: rgba(28, 177, 255, .9);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, .09), 0 0 24px rgba(0, 153, 255, .12);
}
.field .icon {
  width: 32px;
  color: #9cc4e8;
  font-size: 22px;
  margin-right: 8px;
}
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: 17px;
}
.field input::placeholder { color: #7188a2; }

.toggle {
  border: 0;
  background: transparent;
  color: #9eb4cb;
  cursor: pointer;
  font-size: 19px;
  padding: 8px;
}

.login-btn {
  width: 100%;
  height: 66px;
  border: 0;
  border-radius: 15px;
  color: white;
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
  background: linear-gradient(100deg, #0d9df4, #145eff);
  box-shadow: 0 12px 30px rgba(0, 111, 255, .28), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 15px 35px rgba(0, 111, 255, .38);
}
.login-btn:active { transform: translateY(1px); }
.arrow { margin-left: 10px; font-size: 24px; vertical-align: -1px; }

.message {
  min-height: 22px;
  margin-top: 12px;
  color: #ff9d9d;
  font-size: 13px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 28px;
  color: #a6bad0;
  font-size: 13px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78, 153, 220, .55));
}
.divider::after { background: linear-gradient(90deg, rgba(78, 153, 220, .55), transparent); }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.features div {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid rgba(79, 135, 184, .28);
}
.features div:last-child { border-right: 0; }
.features strong {
  color: #13baff;
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 0 15px rgba(0, 185, 255, .55);
}
.features span { color: #b3c7db; font-size: 12px; }

footer {
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #8196ad;
  font-size: 11px;
}

@media (max-width: 720px) {
  .page { padding: 18px 14px; }
  .topbar { font-size: 10px; }
  .login-card {
    margin-top: 34px;
    padding: 38px 22px 30px;
    border-radius: 21px;
  }
  .logo-wrap img { max-height: 115px; }
  .tagline { letter-spacing: 4px; font-size: 10px; margin-bottom: 28px; }
  .field, .login-btn { height: 60px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features div:nth-child(2) { border-right: 0; }
  .features div { margin-bottom: 18px; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  h1 { font-size: 29px; letter-spacing: -1px; }
  .topbar { display: none; }
  .login-card { margin-top: 25px; }
}
