:root {
  color-scheme: dark;
}

html,
body,
#root {
  min-height: 100%;
}

body:has(.uhd-login-page) {
  margin: 0;
  background: #03060d;
}

.uhd-login-page {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 520px) !important;
  align-items: center !important;
  gap: clamp(48px, 7vw, 128px) !important;
  min-height: 100svh !important;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden !important;
  padding: clamp(32px, 5vw, 88px) !important;
  background-color: #03060d !important;
  background-image: url('/uhd-login/space-bg.jpg') !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: #f7f8fb !important;
}

.uhd-login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(1, 4, 10, 0.3);
}

.uhd-brand,
.uhd-copy,
.uhd-auth-shell,
.uhd-language {
  position: relative;
  z-index: 1;
}

.uhd-brand {
  position: absolute;
  top: clamp(28px, 4vw, 58px);
  left: clamp(32px, 5vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uhd-brand-name {
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 8px;
}

.uhd-brand-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.uhd-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  max-width: 690px;
  padding-top: 64px;
}

.uhd-copy-eyebrow {
  margin: 0 0 16px;
  color: #70a7ff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.uhd-copy h1 {
  margin: 0;
  color: #fbfbf9;
  font-size: clamp(48px, 5vw, 82px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.uhd-copy-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(240, 237, 231, 0.78);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.8;
  letter-spacing: 0;
}

.uhd-copy-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  color: rgba(229, 226, 220, 0.64);
  font-size: 15px;
  line-height: 1.5;
}

.uhd-auth-shell {
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.uhd-original-heading {
  display: none !important;
}

.uhd-login-panel {
  padding: clamp(28px, 3vw, 48px) !important;
  border: 1px solid rgba(151, 169, 198, 0.24) !important;
  border-radius: 8px !important;
  background: rgba(7, 14, 28, 0.86) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(16px);
  color: #f8fafc !important;
}

.uhd-login-panel > div:first-child h1 {
  font-size: 34px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.uhd-login-panel > div:first-child p {
  display: none !important;
}

.uhd-login-panel form {
  margin-top: 30px;
}

.uhd-login-panel label {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 14px !important;
}

.uhd-login-panel input {
  height: 52px !important;
  border-color: rgba(151, 169, 198, 0.34) !important;
  border-radius: 6px !important;
  background: rgba(3, 9, 20, 0.52) !important;
  color: #f8fafc !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

.uhd-login-panel input:focus {
  border-color: #5d8ff0 !important;
  box-shadow: 0 0 0 1px #5d8ff0 !important;
}

.uhd-login-panel input::placeholder {
  color: rgba(203, 213, 225, 0.5) !important;
}

.uhd-login-panel form > div > button:last-child {
  height: 52px !important;
  border-radius: 6px !important;
  background: #3867e8 !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(56, 103, 232, 0.28) !important;
}

.uhd-login-panel form > div > button:last-child:hover {
  background: #4877ef !important;
}

.uhd-login-panel form .text-muted-foreground {
  color: #75a3ff !important;
}

.uhd-language {
  position: absolute !important;
  top: clamp(28px, 4vw, 58px) !important;
  right: clamp(32px, 5vw, 88px) !important;
  left: auto !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  .uhd-login-page {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 440px) !important;
    gap: 36px !important;
  }

  .uhd-copy-points {
    display: none;
  }
}

@media (max-width: 760px) {
  .uhd-login-page {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 92px 20px 28px !important;
    background-position: 42% center !important;
  }

  .uhd-login-page::before {
    background: rgba(1, 4, 10, 0.56);
  }

  .uhd-brand {
    top: 28px;
    left: 24px;
  }

  .uhd-brand-name {
    font-size: 25px;
    letter-spacing: 6px;
  }

  .uhd-brand-subtitle {
    font-size: 8px;
    letter-spacing: 3px;
  }

  .uhd-copy {
    display: none;
  }

  .uhd-auth-shell {
    width: min(100%, 430px) !important;
  }

  .uhd-login-panel {
    padding: 28px 22px !important;
  }
}
