:root {
  color-scheme: dark;
  font:
    16px/1.6 system-ui,
    sans-serif;
  color: #f5f6f8;
  background: #03112b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 0 35%, #0e8ddf44, transparent 55%),
    radial-gradient(ellipse at 100% 85%, #2249ac55, transparent 60%);
  padding: 48px 20px;
  overflow-x: hidden;
}
.wave {
  position: fixed;
  width: 90vw;
  height: 90vh;
  border-radius: 48%;
  border: 1px solid #97d8ff24;
  box-shadow: inset 0 30px 80px -45px #0e8ddf44;
  pointer-events: none;
  z-index: -1;
  animation: drift 24s ease-in-out infinite alternate;
}
.one {
  left: -55%;
  top: -20%;
}
.two {
  right: -55%;
  bottom: -25%;
  animation-delay: -12s;
}
main {
  width: 100%;
  max-width: 450px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #93e7fa;
  letter-spacing: 0.25em;
  margin-bottom: 30px;
  font-size: 19px;
}
.brand svg {
  width: 55px;
  height: 55px;
  animation: breathe 7s ease-in-out infinite;
}
.glass {
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(140deg, #ffffff0c, transparent 45%), #061e408c;
  border: 1px solid #97d8ff42;
  box-shadow:
    inset 0 1px #ffffff2a,
    0 24px 80px #0004;
  backdrop-filter: blur(26px);
}
.eyebrow {
  color: #85e4ff;
  font-size: 10px;
  letter-spacing: 0.18em;
}
h1 {
  font-size: clamp(29px, 6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 20px 0 16px;
}
.intro {
  color: #c3c9d3;
  font-size: 14px;
  margin: 0 0 28px;
}
label {
  display: block;
  font-size: 13px;
  margin-bottom: 9px;
  color: #e0e5ed;
}
input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  font: inherit;
  color: #f5f6f8;
  background: #ffffff06;
  border: 1px solid #97d8ff66;
  border-radius: 13px;
  outline: none;
}
input:focus-visible {
  border-color: #85e4ff;
  box-shadow: 0 0 0 3px #85e4ff22;
}
.hint {
  color: #c3c9d3;
  font-size: 11px;
  margin: 9px 0 22px;
}
button {
  width: 100%;
  min-height: 49px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #03283a;
  background: linear-gradient(130deg, #85e4ff, #51d9ff);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
}
button:hover {
  background: #a3ecff;
}
button:focus-visible {
  outline: 2px solid #f5f6f8;
  outline-offset: 4px;
}
#login-error {
  color: #ffc9d0;
  font-size: 13px;
  margin: 0 0 18px;
}
.preview-note {
  display: flex;
  gap: 10px;
  padding-top: 22px;
  margin-top: 26px;
  border-top: 1px solid #97d8ff2e;
  color: #c3c9d3;
  font-size: 11px;
}
.preview-note p {
  margin: 0;
}
.preview-note > span {
  color: #85e4ff;
  font-size: 22px;
}
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  color: #c3c9d3;
  margin: 26px 8px 0;
}
footer > span {
  letter-spacing: 0;
}
@keyframes drift {
  from {
    transform: rotate(-30deg) translate(0, 0);
  }
  to {
    transform: rotate(-20deg) translate(5%, 5%);
  }
}
@keyframes breathe {
  50% {
    transform: scale(1.035);
  }
}
@media (max-width: 480px) {
  body {
    padding: 30px 16px;
  }
  .glass {
    padding: 28px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
@media (prefers-contrast: more) {
  .glass {
    background: #091e3c;
    border-color: #f5f6f8;
  }
}
