/* auth.css — styles for the register panel and notification toast */

#auth-register-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 340px;
  background: #1e1e1e;
  color: #ccc;
  flex-direction: column;
  z-index: 2000; /* above other panels — this one gates everything */
  display: flex;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 16px rgba(0,0,0,0.5);
  overflow-y: auto;
}

#auth-register-panel.visible {
  transform: translateX(0);
}

#auth-register-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #333;
  border-bottom: 1px solid #555;
  flex-shrink: 0;
}

#auth-register-header span { font-weight: bold; font-size: 13px; color: #4da6ff; }

#auth-register-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
#auth-register-close:hover { color: #fff; }

#auth-register-body {
  overflow-y: auto;
  flex: 1;
  padding: 14px 12px;
}

.auth-subtitle {
  font-size: 12px;
  color: #999;
  margin-bottom: 14px;
  line-height: 1.5;
}

.auth-error-msg {
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid #ff4444;
  color: #ffcccc;
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 12px;
}

#auth-register-form .meta-row { margin-bottom: 10px; }

#auth-register-submit {
  width: 100%;
  padding: 8px;
  background: #3a6ea8;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 6px;
}
#auth-register-submit:hover { background: #4a7ec0; }
#auth-register-submit:disabled { background: #555; cursor: not-allowed; }

/* ── Auth: notification toast ── */
#auth-notify-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  min-width: 220px;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: #fff;
  z-index: 3000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

#auth-notify-toast.visible { transform: translateX(0); }
#auth-notify-toast.success { background: #2a7a3a; border: 1px solid #3a9a4a; }
#auth-notify-toast.error   { background: #7a2020; border: 1px solid #a03030; }
