* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #087fc2;
  font-family: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 79% 48%, rgba(127, 225, 255, .45) 0, rgba(63, 191, 239, .18) 13%, transparent 31%),
    radial-gradient(circle at 12% 82%, rgba(102, 225, 255, .67) 0, rgba(57, 190, 235, .35) 19%, transparent 43%),
    radial-gradient(circle at 43% 20%, rgba(48, 179, 232, .55) 0, transparent 37%),
    linear-gradient(135deg, #0870b9 0%, #079bd6 52%, #12b7e9 100%);
  opacity: 1;
  transition: opacity .32s ease;
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-screen::before {
  inset: 0;
  background:
    radial-gradient(circle at 84% 42%, rgba(255, 255, 255, .8) 0 2px, rgba(255, 255, 255, .12) 3px 14px, transparent 16px),
    radial-gradient(circle at 89% 47%, rgba(255, 255, 255, .65) 0 1px, transparent 2px),
    radial-gradient(circle at 8% 72%, rgba(255, 255, 255, .48) 0 1px, transparent 2px),
    linear-gradient(to bottom, rgba(0, 48, 119, .16), transparent 24%, transparent 76%, rgba(0, 77, 139, .16));
}

.login-screen::after {
  left: -8%;
  right: -8%;
  bottom: -24%;
  height: 49%;
  border-radius: 50% 50% 0 0;
  border-top: 2px solid rgba(175, 250, 255, .48);
  box-shadow:
    0 -7px 40px rgba(183, 248, 255, .13),
    0 -1px 0 rgba(20, 118, 208, .55);
  transform: rotate(-3deg);
}

.login-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-lines span {
  position: absolute;
  display: block;
  width: 130vw;
  height: 74vh;
  border: 1px solid transparent;
  border-top-color: rgba(255, 255, 255, .18);
  border-radius: 50%;
}

.login-lines span:nth-child(1) {
  left: -28vw;
  top: 8vh;
  transform: rotate(8deg);
}

.login-lines span:nth-child(2) {
  left: 6vw;
  top: 31vh;
  border-top-color: rgba(113, 214, 108, .42);
  transform: rotate(11deg);
}

.login-lines span:nth-child(3) {
  left: -52vw;
  top: 52vh;
  border-top-color: rgba(172, 243, 255, .32);
  transform: rotate(-13deg);
}

.login-profile {
  position: absolute;
  left: 50%;
  top: 46%;
  display: flex;
  width: min(330px, calc(100vw - 40px));
  padding: 10px 12px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  color: #fff;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  outline: none;
  transition:
    opacity .18s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.login-profile:hover,
.login-profile:focus-visible {
  border-color: rgba(255, 255, 255, .27);
  background: linear-gradient(rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .12),
    0 6px 25px rgba(0, 76, 140, .23);
}

.login-profile.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.profile-frame {
  display: block;
  width: clamp(126px, 14vw, 158px);
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(239, 253, 255, .94), rgba(91, 180, 219, .86) 48%, rgba(18, 104, 167, .9));
  box-shadow:
    inset 0 0 0 1px rgba(38, 106, 157, .65),
    inset 0 0 10px rgba(255, 255, 255, .88),
    0 2px 6px rgba(0, 46, 92, .74),
    0 0 20px rgba(201, 248, 255, .26);
  transition: filter .16s ease, box-shadow .16s ease;
}

.login-profile:hover .profile-frame,
.login-profile:focus-visible .profile-frame {
  filter: brightness(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(38, 106, 157, .65),
    inset 0 0 12px rgba(255, 255, 255, .95),
    0 2px 7px rgba(0, 46, 92, .76),
    0 0 25px rgba(210, 250, 255, .48);
}

.profile-image {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, .96);
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(19, 78, 123, .86);
}

.account-name {
  margin-top: 13px;
  font-size: clamp(24px, 2.35vw, 31px);
  font-weight: 400;
  line-height: 1.1;
  text-shadow:
    0 1px 1px rgba(0, 38, 91, .9),
    0 0 5px rgba(0, 61, 120, .62);
}

.account-prompt {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 46, 99, .9);
  opacity: .82;
}

.welcome-message {
  position: absolute;
  left: 50%;
  top: 46%;
  display: flex;
  min-width: 280px;
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-shadow:
    0 1px 1px rgba(0, 38, 91, .9),
    0 0 5px rgba(0, 61, 120, .62);
  animation: welcome-in .2s ease both;
}

.welcome-message span {
  font-size: 25px;
  font-weight: 400;
}

.welcome-message strong {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 400;
}

.windows-brand {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 48px);
  display: flex;
  align-items: baseline;
  color: rgba(255, 255, 255, .96);
  transform: translateX(-50%);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 64, 120, .78);
}

.windows-mark {
  display: grid;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  transform: skewY(-7deg);
}

.windows-mark i {
  display: block;
  border-radius: 1px;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, .75);
}

.windows-mark i:nth-child(1) {
  background: linear-gradient(135deg, #ff7b20, #e82d16);
}

.windows-mark i:nth-child(2) {
  background: linear-gradient(135deg, #a7dd36, #43a21d);
}

.windows-mark i:nth-child(3) {
  background: linear-gradient(135deg, #2ebeee, #0879d6);
}

.windows-mark i:nth-child(4) {
  background: linear-gradient(135deg, #ffe04a, #f39b13);
}

.windows-name {
  font-size: 29px;
  font-weight: 300;
  letter-spacing: -.8px;
}

.windows-name sup {
  position: relative;
  top: -.47em;
  margin-left: 1px;
  font-size: 14px;
  font-weight: 400;
}

.windows-edition {
  margin-left: 5px;
  font-size: 16px;
  font-weight: 300;
}

.login-screen.login-fade {
  opacity: 0;
}

@keyframes welcome-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 8px));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.desktop-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  user-select: none;
}

.desktop-wallpaper {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/windows7-wallpaper-clean.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.desktop-screen.desktop-entering {
  animation: desktop-in .28s ease both;
}

@keyframes desktop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-height: 560px) {
  .login-profile,
  .welcome-message {
    top: 43%;
  }

  .profile-frame {
    width: 112px;
    padding: 6px;
  }

  .account-name {
    margin-top: 8px;
    font-size: 23px;
  }

  .account-prompt {
    margin-top: 2px;
  }

  .windows-brand {
    bottom: 18px;
  }
}

@media (max-width: 480px) {
  .login-lines span {
    width: 180vw;
  }

  .windows-mark {
    width: 24px;
    height: 24px;
  }

  .windows-name {
    font-size: 25px;
  }

  .windows-edition {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-screen,
  .login-profile,
  .profile-frame {
    transition: none;
  }

  .welcome-message,
  .desktop-screen.desktop-entering {
    animation: none;
  }
}
