:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #17232d;
  --sky-blur: 6px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: #80bce3;
}
button,
input {
  font: inherit;
}
.login-background {
  position: fixed;
  inset: -12px;
  z-index: -1;
  background: #80bce3 url("login/sky-poster.jpg") center / cover no-repeat;
  filter: blur(var(--sky-blur));
  pointer-events: none;
}
.login-background video {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-composition {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
}
.login-clock {
  opacity: 0.7;
  color: #101d26;
  margin-bottom: 16px;
  min-height: 42px;
  font:
    36px/42px ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
}
.clock-digits {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  vertical-align: top;
}
.clock-digit {
  width: 24px;
  height: 42px;
  fill: currentColor;
}
.clock-colon {
  width: 7px;
  height: 42px;
  fill: currentColor;
}
.clock-segment {
  opacity: 0.035;
}
.clock-segment.on {
  opacity: 1;
}
.clock-fallback.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.login-mascot {
  display: block;
  width: 46%;
  height: auto;
  aspect-ratio: 376 / 180;
  /* Align the panel with source y=218 in the 376×180 mascot viewport. */
  margin-bottom: -9.42%;
  z-index: 2;
  overflow: hidden;
}
.login-card {
  width: 100%;
  border-radius: 26px;
  padding: 56px 30px 44px;
  border: 1px solid rgb(255 255 255 / 76%);
  background: rgb(246 251 255 / 94%);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 95%),
    inset 1px 0 1px rgb(255 255 255 / 45%),
    inset 0 -1px 1px rgb(58 82 100 / 12%),
    0 18px 48px rgb(25 46 62 / 16%),
    0 2px 6px rgb(25 46 62 / 5%);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .login-card {
    /* Surface reflection over a light-diffusing layer; clouds remain visible. */
    background:
      linear-gradient(
        135deg,
        rgb(255 255 255 / 48%) 0%,
        rgb(255 255 255 / 12%) 32%,
        rgb(255 255 255 / 4%) 64%,
        rgb(255 255 255 / 28%) 100%
      ),
      rgb(245 251 255 / 38%);
    backdrop-filter: blur(12px) saturate(115%) brightness(106%);
    -webkit-backdrop-filter: blur(12px) saturate(115%) brightness(106%);
  }
}
.login-card h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 650;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}
.login-form {
  display: grid;
  gap: 18px;
}
.login-field {
  display: grid;
  gap: 7px;
}
.login-field > label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}
.login-field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 11px 13px;
  border: 1px solid rgb(124 147 164 / 38%);
  border-radius: 12px;
  background: rgb(255 255 255 / 62%);
  color: #17232d;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 72%),
    0 1px 2px rgb(44 65 80 / 4%);
  font-size: 15px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.login-field input::placeholder {
  color: #667887;
  opacity: 1;
}
.login-field input:focus-visible {
  outline: 2px solid #326e9e;
  outline-offset: 2px;
  border-color: #326e9e;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  top: 3px;
  right: 3px;
  height: 40px;
  width: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #536675;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle:hover {
  color: #17232d;
  background: rgb(216 230 240 / 45%);
}
.password-toggle:focus-visible,
.login-submit:focus-visible {
  outline: 2px solid #326e9e;
  outline-offset: 3px;
}
.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
.login-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #17232d;
}
.login-submit {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid #223340;
  border-radius: 12px;
  background: linear-gradient(#34434f, #111d26);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 20%),
    0 5px 12px rgb(20 45 63 / 12%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.login-submit:hover {
  background: linear-gradient(#3f505e, #172631);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 20%),
    0 7px 16px rgb(20 45 63 / 18%);
}
.login-submit:active {
  transform: translateY(1px);
}
.login-copyright {
  margin: 22px 0 0;
  color: #4b5e6c;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.login-wordmark {
  display: block;
  width: 57%;
  height: auto;
  aspect-ratio: 452 / 160;
  margin-top: -24px;
  z-index: 2;
  overflow: hidden;
}
.login-error {
  padding: 10px 12px;
  margin: 0 0 18px;
  border: 1px solid #e5b0ad;
  border-radius: 10px;
  background: #fff3f2;
  color: #992d27;
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 480px), (max-height: 740px) {
  .login-shell {
    padding: 20px 16px;
  }
  .login-card {
    padding: 48px 24px 38px;
  }
  .login-card h1 {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .login-form {
    gap: 15px;
  }
  .login-field input {
    font-size: 16px;
  }
  .login-clock {
    min-height: 36px;
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 12px;
  }
  .clock-digit,
  .clock-colon {
    height: 36px;
  }
  .clock-digit {
    width: 21px;
  }
  .login-mascot {
    width: 43%;
    margin-bottom: -8.81%;
  }
  .login-wordmark {
    margin-top: -20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .login-background video {
    display: none;
  }
  .login-submit:active {
    transform: none;
  }
}
