/* Question screens already use the fixed Earth backdrop from body::before.
   Hiding the landing picture prevents a second Earth from being rendered
   when a long multi-select question makes the document taller than one view. */
body[data-screen="question"] .hero-media {
  display: none !important;
}

body[data-screen="auth"] #error {
  margin: 0 0 14px;
}

/* Authentication switch must stay readable above the bright Earth horizon. */
body[data-screen="auth"] .content {
  max-width: 630px;
}

body[data-screen="auth"] #screen {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(145, 191, 255, 0.25);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(10, 23, 41, 0.97), rgba(3, 10, 20, 0.96)),
    rgba(3, 10, 20, 0.96);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body[data-screen="auth"] #screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 85% 0%, rgba(70, 139, 237, 0.12), transparent 42%);
  pointer-events: none;
}

body[data-screen="auth"] #screen input {
  background: rgba(5, 15, 28, 0.98);
  border-color: rgba(145, 191, 255, 0.34);
}

body[data-screen="auth"] .entity-state {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: -22px auto 0;
  padding: 9px 14px;
  border: 1px solid rgba(145, 191, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 9, 18, 0.9);
  color: #d4e6ff;
  font-weight: 650;
  text-shadow: 0 2px 10px #000;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}

body[data-screen="auth"] .presence > p {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 36px);
  margin: 10px auto 0;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(145, 191, 255, 0.3);
  background: #030b15;
  color: #e2efff !important;
  font-weight: 650;
  text-shadow: 0 2px 12px #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.52);
}

/* Preserve the original saldo geometry exactly; improve contrast only. */
body[data-screen="saldo"] .presence > p {
  color: #eef6ff !important;
  font-weight: 750 !important;
  text-shadow:
    0 2px 5px #000,
    0 0 12px #000,
    0 0 22px #000 !important;
}

body[data-screen="auth"] #switch {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 14px 0 28px;
  padding: 14px 18px;
  border: 1px solid rgba(145, 191, 255, 0.42);
  border-radius: 10px;
  background: rgba(7, 17, 31, 0.94);
  color: #d7e8ff;
  font-weight: 650;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

body[data-screen="auth"] #switch:hover,
body[data-screen="auth"] #switch:focus-visible {
  border-color: #91bfff;
  background: #10233c;
  color: #fff;
}

@media (max-width: 760px) {
  body[data-screen="auth"] .content {
    padding: 18px 0 38px;
  }

  body[data-screen="auth"] #screen {
    padding: 22px 18px;
    border-radius: 16px;
  }

  body[data-screen="auth"] .entity-state {
    margin-top: -15px;
    font-size: 7px;
    padding: 8px 12px;
  }

  body[data-screen="auth"] .presence > p {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.5;
  }

  body[data-screen="auth"] #switch {
    min-height: 48px;
    margin-bottom: 18px;
  }
}

@media (max-width: 380px) {
  body[data-screen="auth"] #screen {
    padding: 19px 14px;
  }
}
