.auth-control {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  font-family: system-ui, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

.auth-control button,
.auth-control a {
  appearance: none;
  background: #fff;
  border: 0;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 8px 12px;
  text-align: left;
  text-decoration: none;
  color: #222;
  width: 100%;
}

.auth-control button:hover,
.auth-control a:hover {
  background: #f2f4f7;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: min(360px, calc(100vw - 32px));
  font-family: system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.auth-modal h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.auth-modal p {
  margin: 0 0 12px;
  color: #555;
  font-size: 14px;
}

.auth-modal input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.auth-modal .auth-error {
  color: #c62828;
  font-size: 13px;
  min-height: 18px;
  margin-top: 6px;
}

.auth-modal .auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.auth-modal button[type="submit"] {
  appearance: none;
  background: #1e88e5;
  color: #fff;
  border: 0;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}

.auth-modal button[type="submit"]:disabled {
  background: #9ec5ec;
  cursor: not-allowed;
}

.auth-modal .auth-signout-link {
  color: #888;
  font-size: 13px;
  background: transparent;
  padding: 0;
}

.auth-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 9001;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}
