#stage-curtain {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  pointer-events: none;
  transition: opacity .8s ease;
}
#stage-curtain.reveal {
  opacity: 0;
}

#pre-boot-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 20000;
}

#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: var(--z-boot);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .5s;
}
#boot-screen.fade-in  { opacity: 1; }
#boot-screen.fade-out { opacity: 0; pointer-events: none; }

#boot-logo {
  width: 320px;
  height: auto;
  display: block;
  margin-bottom: 40px;
}

.boot-loader {
  border: 2px solid #b2b2b2;
  border-radius: 7px;
  width: 180px;
  height: 22px;
  overflow: hidden;
  padding: 2px 1px;
  position: relative;
}

.boot-loader-track {
  display: flex;
  gap: 3px;
  position: absolute;
  top: 2px;
  animation: bootSlide 2s infinite linear;
}

.boot-box {
  width: 11px;
  height: 14px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #2838c7 0, #5979ef 17%, #869ef3 32%, #869ef3 45%, #5979ef 59%, #2838c7);
}

@keyframes bootSlide {
  0%   { transform: translateX(-50px); }
  100% { transform: translateX(200px); }
}

.boot-bottom-left {
  position: absolute;
  bottom: 48px;
  left: 100px;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}
.boot-bottom-right {
  position: absolute;
  bottom: 50px;
  right: 100px;
}
.boot-bottom-right img { height: 32px; width: auto; display: block; }

#login-screen {
  position: fixed;
  inset: 0;
  background: #002d99;
  color: #fff;
  z-index: calc(var(--z-boot) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
#login-screen.visible  { opacity: 1; pointer-events: auto; }
#login-screen.fade-out { opacity: 0; pointer-events: none; }

.login-inner {
  position: absolute;
  inset: 100px 0;
  background: #587cdb;
}
.login-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #bad7f8, transparent);
}
.login-inner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f8953d, transparent);
}

.login-center {
  display: flex;
  height: 100%;
  position: relative;
  width: 100%;
}

.login-divider {
  position: absolute;
  left: 50%;
  top: 20%; bottom: 20%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(186,215,248,0) 0, #bad7f8 40%, #bad7f8 60%, rgba(186,215,248,0));
  opacity: .35;
  pointer-events: none;
}

.login-left {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(calc(-100% - 72px), -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.login-left .xp-logo { height: 170px; display: block; }
.login-instruction { font-size: 19px; font-weight: 400; margin-top: 24px; letter-spacing: .25px; }
.login-instruction .user-name { font-weight: 700; }

.login-right {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(72px, -50%);
}

.login-card {
  border-radius: 5px;
  padding: 12px 18px;
  min-width: 260px;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #113fa6, #113fa6, #587cdb);
  opacity: 0;
  transition: opacity .3s;
}
.login-card:hover::before { opacity: 1; }

.login-card img.avatar {
  width: 70px;
  border: 3px solid #fff;
  border-radius: 5px;
  position: relative;
  z-index: 1;
  transition: border-color .3s;
}
.login-card:hover img.avatar { border-color: #fdbd32; }

.login-card-text { margin-left: 20px; position: relative; z-index: 1; }
.login-card-text .uname  { font-size: 26px; font-weight: 500; letter-spacing: .25px; }
.login-card-text .utitle { color: navy; font-size: 13px; font-weight: 700; transition: color .3s; }
.login-card:hover .utitle { color: #fdbd32; }

.login-restart {
  position: absolute;
  bottom: 35px;
  left: 50px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.login-restart img { height: 32px; margin-right: 8px; opacity: .8; transition: opacity .2s; }
.login-restart:hover img { opacity: 1; }
.login-restart span { color: #eff1ed; font-size: 16px; font-weight: 500; }

.login-bottom-right {
  position: absolute;
  bottom: 30px;
  right: 50px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.4;
}

#welcome-msg {
  position: fixed;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  background: #002d99;
  z-index: calc(var(--z-boot) + 2);
  pointer-events: none;
  flex-direction: column;
}
#welcome-msg.visible { display: flex; }

#welcome-msg::before {
  content: '';
  position: absolute;
  top: 44px; bottom: 44px; left: 0; right: 0;
  background: #5b65d8;
  box-shadow: inset 0 2px 0 rgba(186,215,248,.25), inset 0 -2px 0 rgba(255,140,0,.35);
}

#welcome-msg::after {
  content: '';
  position: absolute;
  top: 44px;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 30% 30%,
    rgba(255,255,255,.85) 0%,
    rgba(180,200,255,.6) 25%,
    rgba(120,150,255,.25) 55%,
    transparent 75%);
  pointer-events: none;
}

#welcome-msg span {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translateY(-50%);
  font-size: 3.2rem;
  font-style: italic;
  font-weight: 400;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 1px 1px 4px rgba(0,0,30,.4);
  opacity: 0;
  transition: opacity .7s;
}
#welcome-msg.fade-in span { opacity: 1; }
