.login {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  background: var(--navy-2);
  color: var(--surface);
}

.login-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.login-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(color-mix(in srgb, var(--teal) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 8%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: login-grid-pan 18s linear infinite;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
}

.login-orb-teal {
  top: -120px;
  left: -70px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--teal), transparent 70%);
  animation: login-orb-1 14s ease-in-out infinite;
}

.login-orb-violet {
  right: 16%;
  bottom: -150px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  animation: login-orb-2 17s ease-in-out infinite;
}

.login-pt {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 9px var(--teal);
  animation: login-rise linear infinite;
}

.login-pt-1 { left: 9%; bottom: 0; animation-duration: 7.5s; }
.login-pt-2 { left: 17%; bottom: 0; animation-duration: 9s; animation-delay: 1.4s; }
.login-pt-3 { left: 31%; bottom: 0; animation-duration: 6.5s; animation-delay: 0.7s; background: var(--violet); box-shadow: 0 0 9px var(--violet); }
.login-pt-4 { left: 42%; bottom: 0; animation-duration: 8.5s; animation-delay: 2.1s; }
.login-pt-5 { left: 54%; bottom: 0; animation-duration: 7s; animation-delay: 0.3s; }
.login-pt-6 { left: 63%; bottom: 0; animation-duration: 10s; animation-delay: 1.1s; background: var(--violet); box-shadow: 0 0 9px var(--violet); }

.login-hero,
.login-panel {
  position: relative;
  z-index: 2;
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 60px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.login-logo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), color-mix(in srgb, var(--teal) 70%, var(--surface)));
  color: var(--navy);
  box-shadow: 0 0 26px color-mix(in srgb, var(--teal) 55%, transparent);
  font-size: 23px;
  font-weight: 800;
}

.login-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.login-brand-sub {
  color: color-mix(in srgb, var(--surface) 56%, var(--navy));
  font-size: 12.5px;
}

.login h1 {
  font-size: 33px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.login h1 span {
  background: linear-gradient(90deg, var(--teal), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login p {
  max-width: 450px;
  margin: 15px 0 0;
  color: color-mix(in srgb, var(--surface) 64%, var(--navy));
  font-size: 14.5px;
  line-height: 1.75;
}

.login-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  color: color-mix(in srgb, var(--surface) 42%, var(--navy));
  font-size: 12px;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.login-panel-card {
  width: 384px;
  max-width: 90vw;
  padding: 38px 34px;
  border: 1px solid color-mix(in srgb, var(--surface) 14%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--navy-2) 62%, transparent);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--navy) 45%, transparent);
  backdrop-filter: blur(14px);
}

.login-panel-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--cost);
}

.login-panel-card h2 {
  margin: 6px 0 10px;
  font-size: 21px;
  font-weight: 800;
}

.login-panel-card p {
  margin: 0 0 26px;
  color: color-mix(in srgb, var(--surface) 58%, var(--navy));
  font-size: 13px;
}

.login-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.login-label {
  font-size: 12px;
  font-weight: 700;
  color: color-mix(in srgb, var(--surface) 60%, var(--navy));
}

.login-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--surface) 16%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--navy) 30%, transparent);
  color: var(--surface);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent);
}

.login-input:disabled {
  opacity: 0.6;
}

.login-error {
  margin: 2px 0 14px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bad) 14%, transparent);
  color: color-mix(in srgb, var(--bad) 30%, var(--surface));
  font-size: 12.5px;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-bottom: 13px;
  border: 1px solid color-mix(in srgb, var(--surface) 14%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 4%, transparent);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.login-btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--teal), color-mix(in srgb, var(--teal) 74%, var(--navy)));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--teal) 40%, transparent);
  color: var(--surface);
}

.login-sec {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--surface) 10%, transparent);
  color: color-mix(in srgb, var(--surface) 54%, var(--navy));
  font-size: 12.5px;
}

.login-env {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--surface) 10%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 5%, transparent);
  padding: 6px 13px;
  color: color-mix(in srgb, var(--surface) 50%, var(--navy));
  font-size: 12px;
}

@keyframes login-grid-pan {
  to {
    background-position: 46px 46px;
  }
}

@keyframes login-orb-1 {
  50% {
    transform: translate(60px, 40px);
  }
}

@keyframes login-orb-2 {
  50% {
    transform: translate(-50px, -30px);
  }
}

@keyframes login-rise {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  12%,
  88% {
    opacity: 0.75;
  }

  to {
    transform: translateY(-360px);
    opacity: 0;
  }
}

@media (max-width: 880px) {
  .login {
    grid-template-columns: 1fr;
  }

  .login-hero {
    display: none;
  }
}
