/* HillsTribe cluster-only login overlay for abcdesktop.io 4.4. */
#loginScreen {
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 18%, rgba(65, 217, 207, .16), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(124, 92, 255, .14), transparent 34%),
    #070a0d;
  color: #edf5f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#loginScreen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

#loginScreen::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  right: -150px;
  top: -170px;
  z-index: -1;
  border: 1px solid rgba(65, 217, 207, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(65,217,207,.025), 0 0 0 140px rgba(65,217,207,.015);
}

#loginScreen #content {
  position: relative;
  left: auto;
  width: min(92vw, 600px);
  margin: 0;
  padding: 58px 58px 52px;
  overflow: visible;
  border: 1px solid rgba(151, 183, 181, .18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 23, 28, .96), rgba(10, 14, 17, .94));
  box-shadow: 0 32px 100px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(22px);
}

#loginScreen #content::before {
  content: "H";
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  color: #06100f;
  border-radius: 15px 15px 15px 5px;
  background: #41d9cf;
  box-shadow: 0 0 36px rgba(65, 217, 207, .28);
  font-size: 22px;
  font-weight: 800;
}

#loginScreen #content::after {
  content: "OIDC secured  •  Kubernetes native  •  Private workspace";
  display: block;
  margin-top: 26px;
  color: #647572;
  font: 600 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#loginScreen h1 {
  display: block;
  margin: 0;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

#loginScreen h1::before {
  content: "HillsTribe";
  display: block;
  color: #f1fbfa;
  font-size: clamp(38px, 7vw, 58px);
  font-weight: 650;
  letter-spacing: -.045em;
}

#loginScreen h1::after {
  content: "SECURE DESKTOP CLOUD";
  display: block;
  margin: 14px 0 12px;
  color: #41d9cf;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .2em;
}

#loginScreen p {
  max-width: 450px;
  color: #8ea09d;
  font-size: 15px;
  line-height: 1.7;
}

#loginScreen #additionnalloginScreencontent,
#loginScreen #activeDirectory,
#loginScreen #clearCacheSection {
  display: none !important;
}

#loginScreen #connectGP {
  display: block;
  width: 100%;
  margin-top: 34px;
}

#hillstribe-session {
  position: relative;
  margin-top: 26px;
  padding: 20px 132px 20px 20px;
  border: 1px solid rgba(65, 217, 207, .24);
  border-radius: 14px;
  background: rgba(65, 217, 207, .07);
}

.hillstribe-session-status,
.hillstribe-session-detail,
.hillstribe-session-name {
  display: block;
}

.hillstribe-session-status {
  margin-bottom: 8px;
  color: #41d9cf;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
}

.hillstribe-session-name {
  overflow: hidden;
  color: #f1fbfa;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hillstribe-session-detail {
  margin-top: 5px;
  color: #8ea09d;
  font-size: 12px;
}

.hillstribe-session-logout {
  position: absolute;
  top: 50%;
  right: 18px;
  padding: 10px 16px;
  color: #d9e5e3;
  border: 1px solid rgba(217, 229, 227, .2);
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  font-weight: 650;
  transform: translateY(-50%);
  cursor: pointer;
}

.hillstribe-session-logout[hidden] {
  display: none;
}

.hillstribe-session-logout:hover {
  color: #fff;
  border-color: rgba(255, 115, 115, .45);
  background: rgba(255, 115, 115, .1);
}

#hillstribe-session.is-authenticated .hillstribe-session-status {
  color: #7ee0a1;
}

#loginScreen.hillstribe-authenticated #connectGP li a::before {
  content: "Open your desktop";
}

#loginScreen #connectGP.container {
  max-width: none;
  padding: 0;
}

#loginScreen #connectGP ul {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#loginScreen #connectGP li {
  position: relative;
  float: none;
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(65, 217, 207, .38);
  border-radius: 13px;
  background: linear-gradient(135deg, #41d9cf, #7ee0a1) !important;
  box-shadow: 0 14px 32px rgba(65, 217, 207, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}

#loginScreen #connectGP li:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(65, 217, 207, .25);
}

#loginScreen #connectGP li img {
  display: none;
}

#loginScreen #connectGP li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 22px;
  color: #071211 !important;
  font-size: 0;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.01em;
}

#loginScreen #connectGP li a::before {
  content: "Continue to your desktop";
  font-size: 15px;
}

#loginScreen #connectGP li a::after {
  content: "→";
  font-size: 22px;
  transition: transform .2s ease;
}

#loginScreen #connectGP li:hover a::after {
  transform: translateX(4px);
}

#loginScreen .card,
#loginScreen .card-body.mb-4.shadow-sm,
#loginScreen #content #connectGP.container .bg-light {
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}

#loginScreen #title-instance,
#loginScreen #card-head,
#loginScreen .card-header,
#loginScreen .badge {
  display: none !important;
}

@media (max-width: 640px) {
  #loginScreen #content {
    width: calc(100vw - 28px);
    padding: 38px 28px 34px;
    border-radius: 19px;
  }

  #loginScreen #content::after {
    font-size: 8px;
  }

  #hillstribe-session {
    padding: 18px;
  }

  .hillstribe-session-logout {
    position: static;
    width: 100%;
    margin-top: 16px;
    transform: none;
  }
}
