@property --light-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.access-gate .gate-logo {
  width: 144px;
  height: 144px;
}

.access-gate h1 { transform: translateY(72px); }

@media (max-width: 400px) {
  .access-gate .gate-logo { width: 120px; height: 120px; }
  .access-gate h1 { transform: translateY(60px); }
}

.access-gate .gate-password-field {
  isolation: isolate;
}

.access-gate .gate-password-field input:focus {
  outline: none;
  border-color: #dbe2e4;
}

.gate-password-field::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  padding: 3px;
  background: conic-gradient(from var(--light-angle), #0050ef, #008eff 25%, #00c4df 50%, #00e0b7 68%, #008eff 85%, #0050ef);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.gate-main.is-open .gate-password-field::before {
  opacity: 1;
  animation: login-running-light 2.6s linear infinite;
}

@keyframes login-running-light {
  to { --light-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-main.is-open .gate-password-field::before { animation: none; }
}
