:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #050d1d;
  color: #f6f9ff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(24, 91, 255, 0.2), transparent 34%),
    radial-gradient(circle at 84% 74%, rgba(88, 39, 235, 0.18), transparent 32%),
    linear-gradient(145deg, #050b18 0%, #081936 52%, #071126 100%);
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(92, 148, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 148, 255, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.ambient {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
}

.ambient-one {
  top: -160px;
  right: -70px;
  background: rgba(0, 198, 255, 0.15);
}

.ambient-two {
  bottom: -180px;
  left: -80px;
  background: rgba(97, 34, 255, 0.18);
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 52px 0 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin: 0 0 58px;
}

.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.brand-copy span {
  margin-top: 8px;
  color: #83dcff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.eyebrow,
.card-label {
  margin: 0 0 15px;
  color: #64ddff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.description {
  max-width: 630px;
  margin: 28px 0 0;
  color: #b8c7e4;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.72;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.features span {
  padding: 10px 14px;
  border: 1px solid rgba(126, 170, 255, 0.2);
  border-radius: 999px;
  background: rgba(16, 43, 87, 0.48);
  color: #d9e6ff;
  font-size: 0.83rem;
}

.login-card {
  position: relative;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(125, 169, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 34, 70, 0.88), rgba(7, 19, 43, 0.94));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.login-card::after {
  position: absolute;
  top: -80px;
  right: -75px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(26, 119, 255, 0.22);
  filter: blur(28px);
  content: "";
}

.portal-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(112, 193, 255, 0.45);
  border-radius: 17px;
  background: linear-gradient(145deg, #0e5eff, #02c4f7);
  box-shadow: 0 14px 32px rgba(0, 98, 255, 0.32);
}

.portal-icon span {
  display: block;
  width: 19px;
  height: 28px;
  border: 2px solid white;
  border-radius: 3px 9px 9px 3px;
  transform: perspective(30px) rotateY(-15deg);
}

.login-card h2 {
  margin: 0;
  font-size: 2.15rem;
  letter-spacing: -0.035em;
}

.card-copy {
  margin: 14px 0 30px;
  color: #afbed8;
  line-height: 1.65;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #f7faff;
  color: #102043;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-button:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 17px 35px rgba(0, 0, 0, 0.34);
}

.login-button:focus-visible {
  outline: 3px solid #5bdcff;
  outline-offset: 4px;
}

.google-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 42%, #fbbc05 0 67%, #ea4335 0 84%, #4285f4 0);
  color: white;
  font-size: 0.83rem;
  font-weight: 900;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 22px 0 0;
  color: #7184a7;
  font-size: 0.76rem;
  line-height: 1.55;
}

.security-note span {
  color: #20d783;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: #637595;
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 35px;
  }

  .brand {
    margin-bottom: 42px;
  }

  .login-card {
    width: min(100%, 560px);
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .layout,
  footer {
    width: min(100% - 30px, 1180px);
  }

  .layout {
    min-height: auto;
    padding-bottom: 34px;
  }

  .brand {
    margin-bottom: 34px;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .login-card {
    padding: 30px 24px;
    border-radius: 22px;
  }

  footer {
    flex-direction: column;
    padding-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-button {
    transition: none;
  }
}
