/* User login / register */
.auth-overlay {
  z-index: 110;
}

.auth-box {
  max-width: 400px;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-tab {
  flex: 1;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.45rem;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}

.auth-tab.active {
  background: var(--accent);
  color: #000;
}

.auth-form {
  text-align: left;
}

.auth-form.hidden {
  display: none;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.4rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.auth-field input {
  width: 100%;
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #000;
  color: var(--text);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-error {
  background: rgba(248, 113, 113, 0.15);
  border: 2px solid #f87171;
  color: #fca5a5;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.auth-error.hidden {
  display: none;
}

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.4;
}

.user-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.4rem;
  color: var(--accent);
  white-space: nowrap;
}

.user-label.hidden,
.btn-logout.hidden {
  display: none;
}

.btn-logout {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.35rem;
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  border: 2px solid #000;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}

.btn-logout:hover {
  background: rgba(248, 113, 113, 0.35);
}
