/* App wrapper */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
}

/* --- Login container --- */
#login-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

/* Title */
#form-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

/* Single-field login (default) */
#guest-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

#guest-login input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 1rem;
  outline: none;
}

#guest-login input:focus {
  border-color: magenta;
  box-shadow: 0 0 10px rgba(255,0,255,0.3);
}

/* Auth buttons (guest or host) */
#auth-button, 
#revert-button {
  padding: 0.75rem 1.5rem;
  border: 1px solid magenta;
  border-radius: 10px;
  background: transparent;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
  margin-top: 2.5rem;
}

#auth-button:hover,
#revert-button:hover {
  box-shadow: 0 0 12px magenta;
}

#auth-button:active,
#revert-button:active {
  transform: scale(0.97);
}

/* Hidden host login section */
#host-login {
  display: none; /* revealed dynamically */
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

#host-login input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 1rem;
  outline: none;
}

#host-login input:focus {
  border-color: magenta;
  box-shadow: 0 0 10px rgba(255,0,255,0.3);
}

/* Login status message */
#login-status {
  margin-top: 1.5rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* --- Responsive tweaks --- */
@media (max-width: 500px) {
  #guest-login,
  #host-login {
    max-width: 280px;
  }
}
