/* Allotopia auth UI — the door. The magic theme (fonts.css) paints all
   text, fonts, and borders sitewide; this sheet keeps only structure. */

#enter-pill {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 1.6rem;
  line-height: 1;
  width: 62px;
  height: 62px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}
#enter-pill:hover {
  transform: translateX(-50%) scale(1.07);
}

#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 18, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#auth-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* A wordless "nope" — the panel shudders when the key doesn't fit. */
@keyframes bs-deny {
  0%, 100% { transform: translateY(0) scale(1) translateX(0); }
  25%      { transform: translateY(0) scale(1) translateX(-8px); }
  75%      { transform: translateY(0) scale(1) translateX(8px); }
}

.auth-panel {
  position: relative;
  width: min(340px, 88vw);
  background: rgba(4, 6, 18, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 28px 26px 24px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
#auth-overlay.open .auth-panel {
  transform: translateY(0) scale(1);
}
.auth-panel.deny {
  animation: bs-deny 0.28s ease 2;
}

/* Wordless rows: a glowing marker, then the field. */
.auth-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}
.auth-mark {
  font-size: 1.9rem;
  line-height: 1;
  flex: none;
}
/* Pretty custom images for the markers (no colorshift on images). */
img.auth-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: none;
  display: block;
}

/* Wordless show-password toggle — sits with the markers, keeps its
   pretty art (no colorshift, like the key & dna). Dim when the
   password is hidden, glowing when shown. */
.auth-toggle {
  flex: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.auth-toggle img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.auth-toggle.is-showing { opacity: 1; }
.auth-toggle.is-showing img {
  filter: brightness(1.35) drop-shadow(0 0 10px rgba(255, 0, 204, 0.9));
}

/* Neon door image for leaving. */
.auth-submit img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.auth-panel input {
  flex: 1;
  min-width: 0;
  padding: 12px 15px;
  font-size: 1.15rem;
  outline: none;
  /* the pill fill rides a shadow so it survives the text-clipping —
     the field box stays visible even when it's empty */
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.55);
}

.auth-error {
  min-height: 1.6em;
  font-size: 1.25rem;
  text-align: center;
  margin-top: 6px;
}

.auth-submit {
  width: 100%;
  margin-top: 10px;
  padding: 13px 0;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.auth-submit:hover {
  transform: scale(1.03);
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Welcome-view action row: castle (to the 𓉳 page) beside the door (leave). */
.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.auth-actions .auth-submit {
  flex: 1;
  margin-top: 0;
}
.auth-actions img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.auth-welcome {
  text-align: center;
  padding: 12px 0 4px;
}
.auth-welcome .hello {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.auth-welcome .coins {
  font-size: 1.15rem;
  margin-bottom: 14px;
}
