:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: #f3f7f6;
  background: #081b2a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(ellipse at 20% 25%, #19434b66, transparent 55%),
    radial-gradient(ellipse at 85% 80%, #294c5e55, transparent 50%), #081b2a;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 3px solid #ffcb69;
  outline-offset: 5px;
}
.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(100%, 420px);
  padding: 40px;
  border: 1px solid #31536599;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at top right, #23455760, transparent 70%), #102b3d;
  box-shadow: 0 25px 90px #0004;
}
.lock-medallion {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #ffd78a40;
  background: #ffcf7010;
  border-radius: 19px;
  margin: 0 auto 22px;
}
.lock-medallion svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #ffcf70;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(23px, 5.5vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.password-field {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid #5b7f91;
  border-radius: 14px;
  background: #071e2e;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.password-field:focus-within {
  border-color: #ffcf70;
  box-shadow: 0 0 0 3px #ffcf7033;
}
input {
  color: #f3f7f6;
  width: 100%;
  min-width: 0;
  padding: 16px;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
}
input::placeholder {
  color: #9bb8c4;
}
#show-password {
  min-width: 48px;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #a8c7d0;
  display: grid;
  place-items: center;
}
#show-password:hover,
#show-password[aria-pressed="true"] {
  color: #ffcf70;
  background: #ffcf700b;
}
#show-password svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.login-error {
  min-height: 20px;
  color: #ffb4a8;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 12px;
}
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #ffe2a0;
  border-radius: 14px;
  color: #152a34;
  background: linear-gradient(120deg, #ffdc88, #ffc25e);
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 6px 24px #ffb65012;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px #ffb65025;
}
.login-submit:active {
  transform: translateY(1px);
}
.login-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.login-submit svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
noscript {
  display: block;
  color: #ffb4a8;
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 420px) {
  .login-page {
    padding: 20px;
  }
  .login-card {
    padding: 32px 24px;
    border-radius: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
