* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.lockscreen-body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: #f7fbff;
  background: #101820;
}

.lockscreen-background,
.lockscreen-photo,
.lockscreen-shade {
  position: fixed;
  inset: 0;
}

.lockscreen-background {
  z-index: -2;
  overflow: hidden;
  background: #101820;
}

.lockscreen-photo {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  animation: lockscreen-fade 60s infinite;
}

.lockscreen-photo:nth-child(2) {
  animation-delay: 12s;
}

.lockscreen-photo:nth-child(3) {
  animation-delay: 24s;
}

.lockscreen-photo:nth-child(4) {
  animation-delay: 36s;
}

.lockscreen-photo:nth-child(5) {
  animation-delay: 48s;
}

.lockscreen-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 15, 26, 0.84), rgba(6, 15, 26, 0.44) 52%, rgba(6, 15, 26, 0.72)),
    linear-gradient(180deg, rgba(6, 15, 26, 0.38), rgba(6, 15, 26, 0.78));
}

.lockscreen-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lockscreen-panel {
  width: min(100%, 25.5rem);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 18, 31, 0.64);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.lockscreen-logo {
  display: block;
  width: min(100%, 15rem);
  height: auto;
  margin: 0 auto 1.35rem;
  opacity: 0.42;
  transform: translateX(0.55rem);
}

.lockscreen-message {
  margin: 0 0 1.3rem;
  color: rgba(247, 251, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.lockscreen-form {
  display: grid;
  gap: 0.8rem;
}

.lockscreen-field {
  display: grid;
  gap: 0.35rem;
}

.lockscreen-field label {
  color: rgba(247, 251, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lockscreen-field input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  outline: none;
}

.lockscreen-field input::placeholder {
  color: rgba(247, 251, 255, 0.52);
}

.lockscreen-field input:focus {
  border-color: rgba(127, 222, 207, 0.94);
  box-shadow: 0 0 0 3px rgba(127, 222, 207, 0.18);
}

.lockscreen-submit {
  min-height: 2.9rem;
  margin-top: 0.2rem;
  border: 0;
  border-radius: 6px;
  color: #071320;
  background: #7fdecf;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lockscreen-submit:hover,
.lockscreen-submit:focus-visible {
  background: #a4eee3;
}

.lockscreen-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.lockscreen-status {
  min-height: 1.25rem;
  margin: 0.2rem 0 0;
  color: #ffd2d2;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
}

.lockscreen-status[data-state="ok"] {
  color: #b7f7d7;
}

@media (max-width: 560px) {
  .lockscreen-shell {
    align-items: flex-end;
    padding: 1rem;
  }

  .lockscreen-panel {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lockscreen-photo {
    animation: none;
  }

  .lockscreen-photo:first-child {
    opacity: 1;
  }
}

@keyframes lockscreen-fade {
  0%,
  100% {
    opacity: 0;
  }

  12%,
  26% {
    opacity: 1;
  }

  38% {
    opacity: 0;
  }
}
